home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / N-P / NShell-Pro 1.50.sit / nShell-Pro / bin / man.rsrc < prev    next >
MacOS Resource Fork  |  1994-11-27  |  12.4 KB  |  [NSHC/NSHA]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacOS Resource Fork (archive/rsrc).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert MacOS Resource Fork (archive/rsrc) magic Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert BeOS Resource Data (archive/beOSResourceData) ext Unsupported
1% dexvert AppleSingle (archive/appleSingle) fallback Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file AppleDouble encoded Macintosh file default
99% file data default
66% TrID Mac AppleDouble encoded default
33% TrID TTComp archive compressed (bin-2K) default (weak)
100% siegfried fmt/503 AppleDouble Resource Fork (2) default
100% lsar AppleSingle default


id metadata
keyvalue
macFileType[NSHC]
macFileCreator[NSHA]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 16 07 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 02 00 00 00 09 00 00 |........|........|
|00000020| 00 32 00 00 00 20 00 00 | 00 02 00 00 00 52 00 00 |.2... ..|.....R..|
|00000030| 31 3f 4e 53 48 43 4e 53 | 48 41 01 00 00 00 00 00 |1?NSHCNS|HA......|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 01 00 00 00 | 2e 98 00 00 2d 98 00 00 |........|....-...|
|00000060| 02 a7 72 65 74 75 72 6e | 28 20 6c 65 6e 20 29 3b |..return|( len );|
|00000070| 0d 7d 0d 0d 76 6f 69 64 | 20 63 53 74 72 46 72 6f |.}..void| cStrFro|
|00000080| 6d 4e 03 6d 61 6e 02 00 | 00 00 50 61 72 74 53 49 |mN.man..|..PartSI|
|00000090| 54 21 00 00 00 00 00 00 | 00 00 00 00 5d 87 00 00 |T!......|....]...|
|000000a0| 00 00 00 00 50 61 72 74 | 53 49 54 21 00 00 00 00 |....Part|SIT!....|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 ab f7 00 fc | 00 00 00 00 00 00 31 3f |........|......1?|
|000000d0| 20 6e 75 6d 2c 20 73 74 | 72 69 6e 67 20 29 3b 0d | num, st|ring );.|
|000000e0| 09 0d 09 6a 20 3d 20 73 | 74 72 69 6e 67 5b 30 5d |...j = s|tring[0]|
|000000f0| 3b 0d 09 0d 09 69 66 20 | 28 20 6a 20 3e 20 77 69 |;....if |( j > wi|
|00000100| 64 74 68 20 29 0d 09 09 | 66 6f 72 20 28 20 69 20 |dth )...|for ( i |
|00000110| 3d 20 30 20 3b 20 69 20 | 3c 20 77 69 64 74 68 20 |= 0 ; i |< width |
|00000120| 3b 20 69 2b 2b 20 29 09 | 09 2f 2f 20 6e 6f 74 20 |; i++ ).|.// not |
|00000130| 65 6e 6f 75 67 68 20 72 | 6f 6f 6d 0d 09 09 09 70 |enough r|oom....p|
|00000140| 5b 69 5d 20 3d 20 27 2a | 27 3b 0d 09 09 0d 09 69 |[i] = '*|';.....i|
|00000150| 20 3d 00 00 06 52 60 0e | 00 00 4e 53 48 43 3e 80 | =...R`.|..NSHC>.|
|00000160| 00 00 00 00 00 00 41 fa | ff ee 4e 71 4e 71 60 00 |......A.|..NqNq`.|
|00000170| 01 7c 20 6f 00 04 20 2f | 00 08 42 67 a9 ee 20 5f |.| o.. /|..Bg.. _|
|00000180| 50 4f 4e d0 4e 56 00 00 | 48 e7 01 30 26 6e 00 0c |PON.NV..|H..0&n..|
|00000190| 42 a7 2f 0b a9 a5 2e 1f | 20 07 54 80 20 4b a0 24 |B./.....| .T. K.$|
|000001a0| 20 4b a0 29 24 53 0c 32 | 00 0d 78 ff 67 0c 15 bc | K.)$S.2|..x.g...|
|000001b0| 00 0d 78 00 42 32 78 01 | 60 04 42 32 78 00 2f 0a |..x.B2x.|`.B2x./.|
|000001c0| 20 6e 00 08 20 68 00 14 | 4e 90 20 4b a0 2a 2e 8b | n.. h..|N. K.*..|
|000001d0| a9 a3 4c df 0c 80 4e 5e | 4e 75 6d 61 6e 5f 64 69 |..L...N^|Numan_di|
|000001e0| 73 70 4e 56 fe 00 48 e7 | 03 30 26 6e 00 08 7c 00 |spNV..H.|.0&n..|.|
|000001f0| 30 2e 00 10 48 c0 d0 80 | 30 33 08 08 20 4b d0 c0 |0...H...|03.. K..|
|00000200| 48 68 00 d0 48 6e fe 00 | 4e ba 03 80 7e ff 48 6e |Hh..Hn..|N...~.Hn|
|00000210| fe 00 20 6e 00 0c 20 68 | 00 40 4e 90 4a 40 4f ef |.. n.. h|.@N.J@O.|
|00000220| 00 0c 66 0a 42 67 48 6e | fe 00 a9 97 3e 1f 4a 47 |..f.BgHn|....>.JG|
|00000230| 6c 06 70 01 60 00 00 96 | 48 7a 00 ac 48 6e ff 00 |l.p.`...|Hz..Hn..|
|00000240| 4e ba 03 48 4a 6e 00 10 | 50 8f 66 24 30 2b 00 0a |N..HJn..|P.f$0+..|
|00000250| 20 4b d0 c0 48 68 00 d0 | 48 6e ff 00 4e ba 04 00 | K..Hh..|Hn..N...|
|00000260| 48 7a 00 82 48 6e ff 00 | 4e ba 03 f4 4f ef 00 10 |Hz..Hn..|N...O...|
|00000270| 0c 6b 00 02 00 06 6f 18 | 30 2b 00 0c 20 4b d0 c0 |.k....o.|0+.. K..|
|00000280| 48 68 00 d0 48 6e ff 00 | 4e ba 03 d4 50 8f 60 0e |Hh..Hn..|N...P.`.|
|00000290| 48 7a 00 4a 48 6e ff 00 | 4e ba 03 c4 50 8f 42 a7 |Hz.JHn..|N...P.B.|
|000002a0| 2f 3c 54 45 58 54 48 6e | ff 00 a9 a1 24 5f 20 0a |/<TEXTHn|....$_ .|
|000002b0| 66 04 7c 02 60 0c 2f 0a | 2f 2e 00 0c 4e ba fe c6 |f.|.`./.|/...N...|
|000002c0| 50 8f 4a 47 67 04 3f 07 | a9 9a 30 06 4c df 0c c0 |P.JGg.?.|..0.L...|
|000002d0| 4e 5e 4e 75 6d 61 6e 5f | 67 65 74 20 67 65 6e 65 |N^Numan_|get gene|
|000002e0| 72 61 6c 00 20 00 6d 61 | 6e 20 00 00 4e 56 00 00 |ral. .ma|n ..NV..|
|000002f0| 48 e7 03 30 26 6e 00 08 | 24 6e 00 0c 42 2b 00 02 |H..0&n..|$n..B+..|
|00000300| 7e 01 3f 3c 00 0a 2f 0a | 2f 0b 4e ba 00 ae 4a 40 |~.?<../.|/.N...J@|
|00000310| 4f ef 00 0a 66 56 3c 2b | 00 06 0c 46 00 02 6d 06 |O...fV<+|...F..m.|
|00000320| 0c 46 00 03 6f 0e 48 7a | 00 72 20 52 4e 90 7e fd |.F..o.Hz|.r RN.~.|
|00000330| 58 8f 60 30 3f 3c 00 01 | 2f 0a 2f 0b 4e ba fe a4 |X.`0?<..|/./.N...|
|00000340| 3e 00 4f ef 00 0a 67 1c | 42 67 2f 0a 2f 0b 4e ba |>.O...g.|Bg/./.N.|
|00000350| fe 92 3e 00 4f ef 00 0a | 67 0a 48 7a 00 20 20 52 |..>.O...|g.Hz. R|
|00000360| 4e 90 58 8f 37 47 00 04 | 42 2b 00 02 4c df 0c c0 |N.X.7G..|B+..L...|
|00000370| 4e 5e 4e 75 6d 61 69 6e | 20 20 20 20 1c 6d 61 6e |N^Numain| .man|
|00000380| 3a 20 4d 61 6e 75 61 6c | 20 50 61 67 65 20 4e 6f |: Manual| Page No|
|00000390| 74 20 46 6f 75 6e 64 2e | 0d 00 1e 55 73 61 67 65 |t Found.|...Usage|
|000003a0| 3a 20 6d 61 6e 20 63 6f | 6d 6d 61 6e 64 20 5b 73 |: man co|mmand [s|
|000003b0| 65 63 74 69 6f 6e 5d 2e | 0d 00 4e 56 00 00 20 6e |ection].|..NV.. n|
|000003c0| 00 08 30 10 b0 6e 00 10 | 67 1e 48 7a 00 2a 20 6e |..0..n..|g.Hz.* n|
|000003d0| 00 0c 20 50 4e 90 20 6e | 00 08 31 7c ff fe 00 04 |.. PN. n|..1|....|
|000003e0| 42 28 00 02 70 01 60 02 | 70 00 4e 5e 4e 75 6e 73 |B(..p.`.|p.N^Nuns|
|000003f0| 68 63 5f 62 61 64 2d 54 | 68 69 73 20 63 6f 6d 6d |hc_bad-T|his comm|
|00000400| 61 6e 64 20 69 73 20 6e | 6f 74 20 6f 66 20 61 20 |and is n|ot of a |
|00000410| 63 6f 6d 70 61 74 69 62 | 6c 65 20 76 65 72 73 69 |compatib|le versi|
|00000420| 6f 6e 2e 0d 4e 56 00 00 | 48 e7 1f 10 26 6e 00 08 |on..NV..|H...&n..|
|00000430| 7a 01 78 00 60 54 20 4b | d0 c5 3c 30 50 08 30 06 |z.x.`T K|..<0P.0.|
|00000440| 52 46 20 4b d0 c0 0c 28 | 00 2d 00 d0 66 34 76 00 |RF K...(|.-..f4v.|
|00000450| 60 22 be 2e 00 0c 66 02 | 38 05 0c 07 00 61 6d 06 |`"....f.|8....am.|
|00000460| 0c 07 00 7a 6f 0e 0c 07 | 00 41 6d 06 0c 07 00 5a |...zo...|.Am....Z|
|00000470| 6f 02 76 01 30 06 52 46 | 20 4b d0 c0 1e 28 00 d0 |o.v.0.RF| K...(..|
|00000480| 66 d0 4a 43 67 02 78 00 | 52 45 4a 44 66 06 ba 6b |f.JCg.x.|REJDf..k|
|00000490| 00 06 6d a2 30 04 4c df | 08 f8 4e 5e 4e 75 6e 73 |..m.0.L.|..N^Nuns|
|000004a0| 68 63 5f 67 6f 74 4e 56 | 00 00 48 e7 07 10 30 6e |hc_gotNV|..H...0n|
|000004b0| 00 0c d1 c8 d1 ee 00 08 | 36 68 00 08 47 eb 00 d0 |........|6h..G...|
|000004c0| d7 ee 00 08 7c 00 0c 13 | 00 2d 66 04 52 8b 52 46 |....|...|.-f.R.RF|
|000004d0| 7e 01 60 10 0c 05 00 30 | 6d 06 0c 05 00 39 6f 02 |~.`....0|m....9o.|
|000004e0| 7e 00 52 46 4a 47 67 04 | 1a 1b 66 e8 0c 46 00 ff |~.RFJGg.|..f..F..|
|000004f0| 6f 02 7e 00 30 07 4c df | 08 e0 4e 5e 4e 75 6e 73 |o.~.0.L.|..N^Nuns|
|00000500| 68 63 5f 69 73 5f 4e 56 | 00 00 48 e7 03 00 30 6e |hc_is_NV|..H...0n|
|00000510| 00 0c d1 c8 d1 ee 00 08 | 3e 28 00 08 30 07 52 47 |........|>(..0.RG|
|00000520| 20 6e 00 08 d0 c0 1c 28 | 00 d0 0c 06 00 2d 56 c0 | n.....(|.....-V.|
|00000530| 44 00 48 80 4c df 00 c0 | 4e 5e 4e 75 6e 73 68 63 |D.H.L...|N^Nunshc|
|00000540| 5f 69 73 5f 4e 56 00 00 | 48 e7 03 00 7c 01 dc 6e |_is_NV..|H...|..n|
|00000550| 00 0c 7e 00 60 14 3f 06 | 2f 2e 00 08 4e ba ff a8 |..~.`.?.|/...N...|
|00000560| 4a 40 5c 8f 67 02 3e 06 | 52 46 4a 47 66 0a 20 6e |J@\.g.>.|RFJGf. n|
|00000570| 00 08 bc 68 00 06 6d de | 30 07 4c df 00 c0 4e 5e |...h..m.|0.L...N^|
|00000580| 4e 75 6e 73 68 63 5f 6e | 65 78 4e 56 00 00 48 e7 |Nunshc_n|exNV..H.|
|00000590| 03 00 7e 00 60 0a 52 47 | 20 6e 00 08 11 86 70 00 |..~.`.RG| n....p.|
|000005a0| 20 6e 00 0c 52 ae 00 0c | 1c 10 66 ea 20 6e 00 08 | n..R...|..f. n..|
|000005b0| 10 87 4c df 00 c0 4e 5e | 4e 75 70 53 74 72 46 72 |..L...N^|NupStrFr|
|000005c0| 6f 6d 4e 56 00 00 2f 07 | 20 6e 00 0c 52 ae 00 0c |omNV../.| n..R...|
|000005d0| 22 6e 00 08 52 ae 00 08 | 1e 10 12 87 70 00 10 07 |"n..R...|....p...|
|000005e0| 3e 00 60 12 20 6e 00 0c | 52 ae 00 0c 22 6e 00 08 |>.`. n..|R..."n..|
|000005f0| 52 ae 00 08 12 90 53 47 | 4a 47 6c e8 2e 1f 4e 5e |R.....SG|JGl...N^|
|00000600| 4e 75 70 53 74 72 43 6f | 70 79 4e 56 00 00 48 e7 |NupStrCo|pyNV..H.|
|00000610| 07 10 26 6e 00 08 7e 00 | 1e 13 20 6e 00 0c 7c 00 |..&n..~.|.. n..|.|
|00000620| 1c 10 4a 46 67 28 30 07 | d0 46 0c 40 01 00 6c 1e |..JFg(0.|.F.@..l.|
|00000630| 7a 01 60 10 20 6e 00 0c | 30 07 d0 45 17 b0 50 00 |z.`. n..|0..E..P.|
|00000640| 00 00 52 45 bc 45 6c ec | 10 07 d0 06 16 80 4c df |..RE.El.|......L.|
|00000650| 08 e0 4e 5e 4e 75 70 53 | 74 72 41 70 70 65 4e 56 |..N^NupS|trAppeNV|
|00000660| 00 00 48 e7 03 10 26 6e | 00 08 7e 00 1e 13 60 06 |..H...&n|..~...`.|
|00000670| 52 47 17 86 70 00 20 6e | 00 0c 52 ae 00 0c 1c 10 |RG..p. n|..R.....|
|00000680| 66 ee 0c 47 01 00 6c 02 | 16 87 4c df 08 c0 4e 5e |f..G..l.|..L...N^|
|00000690| 4e 75 70 53 74 72 41 70 | 70 65 4e 56 00 00 2f 07 |NupStrAp|peNV../.|
|000006a0| 20 6e 00 08 7e 00 1e 10 | 22 6e 00 0c 70 00 10 11 | n..~...|"n..p...|
|000006b0| b0 47 67 1c 70 00 60 1e | 20 6e 00 08 22 6e 00 0c |.Gg.p.`.| n.."n..|
|000006c0| 10 30 70 00 b0 31 70 00 | 67 04 70 00 60 08 53 47 |.0p..1p.|g.p.`.SG|
|000006d0| 4a 47 66 e4 70 01 2e 1f | 4e 5e 4e 75 70 53 74 72 |JGf.p...|N^NupStr|
|000006e0| 45 71 75 61 4e 56 00 00 | 2f 07 20 6e 00 08 52 ae |EquaNV..|/. n..R.|
|000006f0| 00 08 1e 10 20 6e 00 0c | 52 ae 00 0c be 10 67 04 |.... n..|R.....g.|
|00000700| 70 00 60 06 4a 07 66 e2 | 70 01 2e 1f 4e 5e 4e 75 |p.`.J.f.|p...N^Nu|
|00000710| 63 53 74 72 45 71 75 61 | 4e 56 00 00 2f 07 7e 00 |cStrEqua|NV../.~.|
|00000720| 60 02 52 47 20 6e 00 08 | 52 ae 00 08 4a 10 66 f2 |`.RG n..|R...J.f.|
|00000730| 30 07 2e 1f 4e 5e 4e 75 | 63 53 74 72 4c 65 6e 20 |0...N^Nu|cStrLen |
|00000740| 4e 56 ff de 48 e7 07 10 | 3e 2e 00 0c 26 6e 00 08 |NV..H...|>...&n..|
|00000750| 2f 2e 00 0e 48 6e ff de | 4e ba fa 18 7a 00 1a 2e |/...Hn..|N...z...|
|00000760| ff de be 45 6c 10 7c 00 | 60 08 17 bc 00 2a 60 00 |...El.|.|`....*`.|
|00000770| 52 46 be 46 6e f4 3c 07 | 60 1a 4a 45 67 0e 30 05 |RF.Fn.<.|`.JEg.0.|
|00000780| 53 45 53 46 17 b6 00 de | 60 00 60 08 53 46 17 bc |SESF....|`.`.SF..|
|00000790| 00 20 60 00 4a 46 66 e2 | 4c df 08 e0 4e 5e 4e 75 |. `.JFf.|L...N^Nu|
|000007a0| 63 53 74 72 46 72 6f 6d | 00 00 00 37 01 50 80 00 |cStrFrom|...7.P..|
|000007b0| 00 00 05 31 2e 35 2e 30 | 2a 31 2e 35 2e 30 2c 20 |...1.5.0|*1.5.0, |
|000007c0| a9 20 4e 65 77 70 6f 72 | 74 20 53 6f 66 74 77 61 |. Newpor|t Softwa|
|000007d0| 72 65 20 44 65 76 65 6c | 6f 70 6d 65 6e 74 20 31 |re Devel|opment 1|
|000007e0| 39 39 34 00 00 00 27 01 | 50 80 00 00 00 05 31 2e |994...'.|P.....1.|
|000007f0| 35 2e 30 1a 31 2e 35 2e | 30 20 28 41 6e 20 6e 53 |5.0.1.5.|0 (An nS|
|00000800| 68 65 6c 6c aa 20 43 6f | 6d 6d 61 6e 64 29 00 00 |hell. Co|mmand)..|
|00000810| 02 03 0d 4e 41 4d 45 0d | 0d 6d 61 6e 20 2d 20 63 |...NAME.|.man - c|
|00000820| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 20 6d 61 6e 75 |ommand l|ine manu|
|00000830| 61 6c 0d 0d 53 59 4e 4f | 50 53 49 53 0d 0d 6d 61 |al..SYNO|PSIS..ma|
|00000840| 6e 20 63 6f 6d 6d 61 6e | 64 20 5b 73 65 63 74 69 |n comman|d [secti|
|00000850| 6f 6e 5d 0d 0d 44 45 53 | 43 52 49 50 54 49 4f 4e |on]..DES|CRIPTION|
|00000860| 0d 0d 54 68 65 20 22 6d | 61 6e 22 20 70 72 6f 67 |..The "m|an" prog|
|00000870| 72 61 6d 20 72 65 61 64 | 73 20 61 20 64 65 73 63 |ram read|s a desc|
|00000880| 72 69 70 74 69 76 65 20 | 74 65 78 74 20 72 65 73 |riptive |text res|
|00000890| 6f 75 72 63 65 20 66 72 | 6f 6d 20 77 69 74 68 69 |ource fr|om withi|
|000008a0| 6e 20 61 20 73 65 6c 65 | 63 74 65 64 20 63 6f 6d |n a sele|cted com|
|000008b0| 6d 61 6e 64 20 61 6e 64 | 20 77 72 69 74 65 73 20 |mand and| writes |
|000008c0| 74 68 61 74 20 74 65 78 | 74 20 74 6f 20 73 74 61 |that tex|t to sta|
|000008d0| 6e 64 61 72 64 20 6f 75 | 74 70 75 74 2e 0d 0d 4e |ndard ou|tput...N|
|000008e0| 6f 74 65 3a 20 4d 61 6e | 20 70 61 67 65 73 20 61 |ote: Man| pages a|
|000008f0| 72 65 20 61 76 61 69 6c | 61 62 6c 65 20 66 6f 72 |re avail|able for|
|00000900| 20 66 6c 6f 77 2d 6f 66 | 2d 63 6f 6e 74 72 6f 6c | flow-of|-control|
|00000910| 20 73 74 61 74 65 6d 65 | 6e 74 73 2c 20 62 75 74 | stateme|nts, but|
|00000920| 20 74 68 65 79 20 6d 75 | 73 74 20 62 65 20 71 75 | they mu|st be qu|
|00000930| 6f 74 65 64 20 73 6f 20 | 74 68 61 74 20 74 68 65 |oted so |that the|
|00000940| 20 73 68 65 6c 6c 20 6b | 6e 6f 77 73 20 68 6f 77 | shell k|nows how|
|00000950| 20 74 6f 20 65 78 65 63 | 75 74 65 20 74 68 65 6d | to exec|ute them|
|00000960| 3a 0d 0d 6d 61 6e 20 22 | 69 66 22 0d 6d 61 6e 20 |:..man "|if".man |
|00000970| 22 77 68 69 6c 65 22 0d | 0d 52 45 54 55 52 4e 20 |"while".|.RETURN |
|00000980| 43 4f 44 45 53 0d 0d 3c | 30 09 45 72 72 6f 72 0d |CODES..<|0.Error.|
|00000990| 30 09 53 75 63 63 65 73 | 73 0d 0d 53 45 45 20 41 |0.Succes|s..SEE A|
|000009a0| 4c 53 4f 0d 0d 74 72 79 | 20 22 6d 61 6e 20 6d 61 |LSO..try| "man ma|
|000009b0| 6e 20 72 65 73 6f 75 72 | 63 65 73 22 0d 0d 54 68 |n resour|ces"..Th|
|000009c0| 65 20 6e 53 68 65 6c 6c | 20 50 72 6f 67 72 61 6d |e nShell| Program|
|000009d0| 6d 65 72 27 73 20 47 75 | 69 64 65 20 63 6f 6e 74 |mer's Gu|ide cont|
|000009e0| 61 69 6e 73 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 |ains add|itional |
|000009f0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 6f 6e 20 77 |informat|ion on w|
|00000a00| 72 69 74 69 6e 67 20 6d | 61 6e 20 72 65 73 6f 75 |riting m|an resou|
|00000a10| 72 63 65 73 2e 00 00 01 | 1c 0d 4d 41 4e 20 52 45 |rces....|..MAN RE|
|00000a20| 53 4f 55 52 43 45 53 0d | 0d 54 6f 20 63 72 65 61 |SOURCES.|.To crea|
|00000a30| 74 65 20 6d 61 6e 20 70 | 61 67 65 73 20 66 6f 72 |te man p|ages for|
|00000a40| 20 79 6f 75 72 20 6f 77 | 6e 20 63 6f 6d 6d 61 6e | your ow|n comman|
|00000a50| 64 73 2c 20 63 72 65 61 | 74 65 20 54 45 58 54 20 |ds, crea|te TEXT |
|00000a60| 72 65 73 6f 75 72 63 65 | 73 20 77 69 74 68 3a 0d |resource|s with:.|
|00000a70| 0d 31 2e 20 20 20 20 20 | 52 65 73 6f 75 72 63 65 |.1. |Resource|
|00000a80| 20 49 44 73 20 61 62 6f | 76 65 20 73 69 78 74 65 | IDs abo|ve sixte|
|00000a90| 65 6e 20 74 68 6f 75 73 | 61 6e 64 2e 0d 32 2e 20 |en thous|and..2. |
|00000aa0| 20 20 20 20 52 65 73 6f | 75 72 63 65 20 6e 61 6d | Reso|urce nam|
|00000ab0| 65 73 20 6f 66 20 74 68 | 65 20 66 6f 72 6d 61 74 |es of th|e format|
|00000ac0| 20 22 6d 61 6e 20 73 75 | 62 6a 65 63 74 22 0d 0d | "man su|bject"..|
|00000ad0| 4e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 72 65 |Note tha|t the re|
|00000ae0| 73 6f 75 72 63 65 20 77 | 69 74 68 20 74 68 65 20 |source w|ith the |
|00000af0| 6e 61 6d 65 20 22 6d 61 | 6e 20 67 65 6e 65 72 61 |name "ma|n genera|
|00000b00| 6c 22 20 69 73 20 75 73 | 65 64 20 77 68 65 6e 20 |l" is us|ed when |
|00000b10| 74 68 65 20 75 73 65 72 | 20 64 6f 65 73 20 6e 6f |the user| does no|
|00000b20| 74 20 73 70 65 63 69 66 | 79 20 61 20 73 75 62 6a |t specif|y a subj|
|00000b30| 65 63 74 2e 0d 00 00 02 | 34 0d 4e 41 4d 45 0d 0d |ect.....|4.NAME..|
|00000b40| 73 65 74 20 2d 20 73 65 | 74 20 65 6e 76 69 72 6f |set - se|t enviro|
|00000b50| 6e 6d 65 6e 74 61 6c 20 | 76 61 72 69 61 62 6c 65 |nmental |variable|
|00000b60| 73 0d 0d 53 59 4e 4f 50 | 53 49 53 0d 0d 73 65 74 |s..SYNOP|SIS..set|
|00000b70| 20 6e 61 6d 65 20 5b 76 | 61 6c 75 65 5d 0d 0d 44 | name [v|alue]..D|
|00000b80| 45 53 43 52 49 50 54 49 | 4f 4e 0d 0d 54 68 65 20 |ESCRIPTI|ON..The |
|00000b90| 22 73 65 74 22 20 63 6f | 6d 6d 61 6e 64 20 61 6c |"set" co|mmand al|
|00000ba0| 6c 6f 77 73 20 74 68 65 | 20 6f 70 65 72 61 74 6f |lows the| operato|
|00000bb0| 72 20 74 6f 20 73 65 74 | 20 76 61 72 69 61 62 6c |r to set| variabl|
|00000bc0| 65 73 20 77 69 74 68 69 | 6e 20 74 68 65 20 73 68 |es withi|n the sh|
|00000bd0| 65 6c 6c 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 2e |ell envi|ronment.|
|00000be0| 20 20 54 68 65 20 6e 6f | 72 6d 61 6c 20 73 79 6e | The no|rmal syn|
|00000bf0| 74 61 78 20 69 6e 63 6c | 75 64 65 73 20 61 20 22 |tax incl|udes a "|
|00000c00| 76 61 6c 75 65 22 20 73 | 74 72 69 6e 67 2e 20 20 |value" s|tring. |
|00000c10| 49 66 20 6e 6f 20 76 61 | 6c 75 65 20 69 73 20 67 |If no va|lue is g|
|00000c20| 69 76 65 6e 2c 20 74 68 | 65 20 73 68 65 6c 6c 20 |iven, th|e shell |
|00000c30| 76 61 72 69 61 62 6c 65 | 20 69 73 20 73 65 74 20 |variable| is set |
|00000c40| 65 71 75 61 6c 20 74 6f | 20 61 20 6e 75 6c 6c 20 |equal to| a null |
|00000c50| 73 74 72 69 6e 67 2e 0d | 0d 56 61 72 69 61 62 6c |string..|.Variabl|
|00000c60| 65 20 6e 61 6d 65 73 20 | 61 72 65 20 6c 69 6d 69 |e names |are limi|
|00000c70| 74 65 64 20 74 6f 20 74 | 68 65 20 63 68 61 72 61 |ted to t|he chara|
|00000c80| 63 74 65 72 73 20 61 2d | 7a 2c 20 41 2d 5a 2c 20 |cters a-|z, A-Z, |
|00000c90| 30 2d 39 2c 20 5f 20 61 | 6e 64 20 6d 61 79 20 62 |0-9, _ a|nd may b|
|00000ca0| 65 20 33 31 20 63 68 61 | 72 61 63 74 65 72 73 20 |e 31 cha|racters |
|00000cb0| 69 6e 20 6c 65 6e 67 74 | 68 2e 20 20 54 68 65 20 |in lengt|h. The |
|00000cc0| 76 61 6c 75 65 20 73 74 | 72 69 6e 67 20 6d 61 79 |value st|ring may|
|00000cd0| 20 63 6f 6e 74 61 69 6e | 20 61 6e 79 20 63 68 61 | contain| any cha|
|00000ce0| 72 61 63 74 65 72 20 61 | 6e 64 20 6d 61 79 20 62 |racter a|nd may b|
|00000cf0| 65 20 32 35 35 20 63 68 | 61 72 61 63 74 65 72 73 |e 255 ch|aracters|
|00000d00| 20 69 6e 20 6c 65 6e 67 | 74 68 2e 0d 0d 52 45 54 | in leng|th...RET|
|00000d10| 55 52 4e 20 43 4f 44 45 | 53 0d 0d 3c 30 09 41 6e |URN CODE|S..<0.An|
|00000d20| 20 65 72 72 6f 72 20 70 | 72 65 76 65 6e 74 65 64 | error p|revented|
|00000d30| 20 74 68 65 20 61 73 73 | 69 67 6e 6d 65 6e 74 0d | the ass|ignment.|
|00000d40| 30 09 53 75 63 63 65 73 | 73 66 75 6c 20 61 73 73 |0.Succes|sful ass|
|00000d50| 69 67 6e 6d 65 6e 74 0d | 0d 53 45 45 20 41 4c 53 |ignment.|.SEE ALS|
|00000d60| 4f 0d 0d 75 6e 73 65 74 | 2c 20 65 6e 76 00 00 01 |O..unset|, env...|
|00000d70| 64 0d 4e 41 4d 45 0d 0d | 75 6e 73 65 74 20 2d 20 |d.NAME..|unset - |
|00000d80| 72 65 6d 6f 76 65 20 61 | 20 73 68 65 6c 6c 20 76 |remove a| shell v|
|00000d90| 61 72 69 61 62 6c 65 0d | 0d 53 59 4e 4f 50 53 49 |ariable.|.SYNOPSI|
|00000da0| 53 0d 0d 75 6e 73 65 74 | 20 6e 61 6d 65 0d 0d 44 |S..unset| name..D|
|00000db0| 45 53 43 52 49 50 54 49 | 4f 4e 0d 0d 54 68 65 20 |ESCRIPTI|ON..The |
|00000dc0| 22 75 6e 73 65 74 22 20 | 63 6f 6d 6d 61 6e 64 20 |"unset" |command |
|00000dd0| 72 65 6d 6f 76 65 73 20 | 74 68 65 20 6e 61 6d 65 |removes |the name|
|00000de0| 64 20 76 61 72 69 61 62 | 6c 65 20 66 72 6f 6d 20 |d variab|le from |
|00000df0| 74 68 65 20 73 68 65 6c | 6c 20 65 6e 76 69 72 6f |the shel|l enviro|
|00000e00| 6e 6d 65 6e 74 2e 0d 0d | 56 61 72 69 61 62 6c 65 |nment...|Variable|
|00000e10| 20 6e 61 6d 65 73 20 61 | 72 65 20 6c 69 6d 69 74 | names a|re limit|
|00000e20| 65 64 20 74 6f 20 74 68 | 65 20 63 68 61 72 61 63 |ed to th|e charac|
|00000e30| 74 65 72 73 20 61 2d 7a | 2c 20 41 2d 5a 2c 20 30 |ters a-z|, A-Z, 0|
|00000e40| 2d 39 2c 20 5f 20 61 6e | 64 20 6d 61 79 20 62 65 |-9, _ an|d may be|
|00000e50| 20 33 31 20 63 68 61 72 | 61 63 74 65 72 73 20 69 | 31 char|acters i|
|00000e60| 6e 20 6c 65 6e 67 74 68 | 2e 0d 0d 52 45 54 55 52 |n length|...RETUR|
|00000e70| 4e 20 43 4f 44 45 53 0d | 0d 3c 30 09 41 6e 20 65 |N CODES.|.<0.An e|
|00000e80| 72 72 6f 72 20 70 72 65 | 76 65 6e 74 65 64 20 74 |rror pre|vented t|
|00000e90| 68 65 20 72 65 6d 6f 76 | 61 6c 0d 30 09 53 75 63 |he remov|al.0.Suc|
|00000ea0| 63 65 73 73 66 75 6c 20 | 72 65 6d 6f 76 61 6c 20 |cessful |removal |
|00000eb0| 6f 72 20 6e 61 6d 65 20 | 6e 6f 74 20 66 6f 75 6e |or name |not foun|
|00000ec0| 64 0d 0d 53 45 45 20 41 | 4c 53 4f 0d 0d 73 65 74 |d..SEE A|LSO..set|
|00000ed0| 2c 20 65 6e 76 00 00 01 | d0 0d 4e 41 4d 45 0d 0d |, env...|..NAME..|
|00000ee0| 65 6e 76 20 2d 20 6c 69 | 73 74 20 73 68 65 6c 6c |env - li|st shell|
|00000ef0| 20 76 61 72 69 61 62 6c | 65 73 0d 0d 53 59 4e 4f | variabl|es..SYNO|
|00000f00| 50 53 49 53 0d 0d 65 6e | 76 20 5b 6e 61 6d 65 31 |PSIS..en|v [name1|
|00000f10| 5d 20 5b 6e 61 6d 65 32 | 5d 20 2e 20 2e 20 2e 20 |] [name2|] . . . |
|00000f20| 0d 0d 44 45 53 43 52 49 | 50 54 49 4f 4e 0d 0d 54 |..DESCRI|PTION..T|
|00000f30| 68 65 20 22 65 6e 76 22 | 20 63 6f 6d 6d 61 6e 64 |he "env"| command|
|00000f40| 20 77 69 6c 6c 20 6c 69 | 73 74 20 74 68 65 20 63 | will li|st the c|
|00000f50| 75 72 72 65 6e 74 20 73 | 68 65 6c 6c 20 65 6e 76 |urrent s|hell env|
|00000f60| 69 72 6f 6e 6d 65 6e 74 | 2e 20 20 56 61 72 69 61 |ironment|. Varia|
|00000f70| 62 6c 65 73 20 61 72 65 | 20 6c 69 73 74 65 64 20 |bles are| listed |
|00000f80| 77 69 74 68 20 74 68 65 | 69 72 20 76 61 6c 75 65 |with the|ir value|
|00000f90| 73 2e 20 20 49 66 20 6e | 6f 20 70 61 72 61 6d 65 |s. If n|o parame|
|00000fa0| 74 65 72 73 20 61 72 65 | 20 67 69 76 65 6e 2c 20 |ters are| given, |
|00000fb0| 61 6c 6c 20 61 63 74 69 | 76 65 20 73 68 65 6c 6c |all acti|ve shell|
|00000fc0| 20 76 61 72 69 61 62 6c | 65 73 20 61 72 65 20 6c | variabl|es are l|
|00000fd0| 69 73 74 65 64 2e 0d 0d | 56 61 72 69 61 62 6c 65 |isted...|Variable|
|00000fe0| 20 6e 61 6d 65 73 20 61 | 72 65 20 6c 69 6d 69 74 | names a|re limit|
|00000ff0| 65 64 20 74 6f 20 74 68 | 65 20 63 68 61 72 61 63 |ed to th|e charac|
|00001000| 74 65 72 73 20 61 2d 7a | 2c 20 41 2d 5a 2c 20 30 |ters a-z|, A-Z, 0|
|00001010| 2d 39 2c 20 5f 20 61 6e | 64 20 6d 61 79 20 62 65 |-9, _ an|d may be|
|00001020| 20 33 31 20 63 68 61 72 | 61 63 74 65 72 73 20 69 | 31 char|acters i|
|00001030| 6e 20 6c 65 6e 67 74 68 | 2e 0d 0d 52 45 54 55 52 |n length|...RETUR|
|00001040| 4e 20 43 4f 44 45 53 0d | 0d 3c 30 09 41 6e 20 65 |N CODES.|.<0.An e|
|00001050| 72 72 6f 72 20 70 72 65 | 76 65 6e 74 65 64 20 74 |rror pre|vented t|
|00001060| 68 65 20 73 65 61 72 63 | 68 0d 30 09 53 75 63 63 |he searc|h.0.Succ|
|00001070| 65 73 73 66 75 6c 20 73 | 65 61 72 63 68 20 28 69 |essful s|earch (i|
|00001080| 6e 63 2e 20 6e 61 6d 65 | 20 6e 6f 74 20 66 6f 75 |nc. name| not fou|
|00001090| 6e 64 29 0d 0d 53 45 45 | 20 41 4c 53 4f 0d 0d 73 |nd)..SEE| ALSO..s|
|000010a0| 65 74 2c 20 75 6e 73 65 | 74 00 00 01 d8 0d 4e 41 |et, unse|t.....NA|
|000010b0| 4d 45 0d 0d 70 61 74 68 | 63 68 6b 20 2d 20 65 76 |ME..path|chk - ev|
|000010c0| 61 6c 75 61 74 65 73 20 | 61 20 66 75 6c 6c 20 6f |aluates |a full o|
|000010d0| 72 20 70 61 72 74 69 61 | 6c 20 70 61 74 68 6e 61 |r partia|l pathna|
|000010e0| 6d 65 0d 0d 53 59 4e 4f | 50 53 49 53 0d 0d 70 61 |me..SYNO|PSIS..pa|
|000010f0| 74 68 63 68 6b 20 70 61 | 74 68 6e 61 6d 65 0d 0d |thchk pa|thname..|
|00001100| 44 45 53 43 52 49 50 54 | 49 4f 4e 0d 0d 54 68 65 |DESCRIPT|ION..The|
|00001110| 20 6e 53 68 65 6c 6c 20 | 65 6e 76 69 72 6f 6e 6d | nShell |environm|
|00001120| 65 6e 74 20 75 73 65 73 | 20 74 72 61 64 69 74 69 |ent uses| traditi|
|00001130| 6f 6e 61 6c 20 4d 61 63 | 69 6e 74 6f 73 68 20 70 |onal Mac|intosh p|
|00001140| 61 74 68 6e 61 6d 65 73 | 2e 20 20 54 68 65 20 22 |athnames|. The "|
|00001150| 70 61 74 68 63 68 6b 22 | 20 63 6f 6d 6d 61 6e 64 |pathchk"| command|
|00001160| 20 69 73 20 69 6e 63 6c | 75 64 65 64 20 74 6f 20 | is incl|uded to |
|00001170| 61 6c 6c 6f 77 20 74 68 | 65 20 75 73 65 72 20 74 |allow th|e user t|
|00001180| 6f 20 65 78 70 65 72 69 | 6d 65 6e 74 20 77 69 74 |o experi|ment wit|
|00001190| 68 20 74 68 6f 73 65 20 | 70 61 74 68 6e 61 6d 65 |h those |pathname|
|000011a0| 73 2e 0d 0d 47 69 76 65 | 6e 20 61 20 66 75 6c 6c |s...Give|n a full|
|000011b0| 20 6f 72 20 70 61 72 74 | 69 61 6c 20 70 61 74 68 | or part|ial path|
|000011c0| 6e 61 6d 65 2c 20 70 61 | 74 68 63 68 6b 20 77 69 |name, pa|thchk wi|
|000011d0| 6c 6c 20 65 63 68 6f 20 | 74 68 65 20 65 71 75 69 |ll echo |the equi|
|000011e0| 76 61 6c 65 6e 74 20 66 | 75 6c 6c 20 70 61 74 68 |valent f|ull path|
|000011f0| 6e 61 6d 65 2e 0d 0d 50 | 61 74 68 63 68 6b 20 64 |name...P|athchk d|
|00001200| 6f 65 73 20 6e 6f 74 20 | 63 68 65 63 6b 20 74 6f |oes not |check to|
|00001210| 20 73 65 65 20 69 66 20 | 61 6e 79 20 6f 66 20 74 | see if |any of t|
|00001220| 68 65 20 73 70 65 63 69 | 66 69 65 64 20 76 6f 6c |he speci|fied vol|
|00001230| 75 6d 65 73 2c 20 64 69 | 72 65 63 74 6f 72 69 65 |umes, di|rectorie|
|00001240| 73 2c 20 6f 72 20 66 69 | 6c 65 73 20 65 78 69 73 |s, or fi|les exis|
|00001250| 74 2e 0d 0d 52 45 54 55 | 52 4e 20 43 4f 44 45 53 |t...RETU|RN CODES|
|00001260| 0d 0d 3c 30 09 45 72 72 | 6f 72 0d 30 09 53 75 63 |..<0.Err|or.0.Suc|
|00001270| 63 65 73 73 0d 0d 53 45 | 45 20 41 4c 53 4f 0d 0d |cess..SE|E ALSO..|
|00001280| 77 68 69 63 68 00 00 02 | 44 0d 4e 41 4d 45 0d 0d |which...|D.NAME..|
|00001290| 77 68 69 63 68 20 2d 20 | 77 68 69 63 68 20 63 6f |which - |which co|
|000012a0| 70 79 20 6f 66 20 61 20 | 63 6f 6d 6d 61 6e 64 20 |py of a |command |
|000012b0| 77 69 6c 6c 20 62 65 20 | 75 73 65 64 0d 0d 53 59 |will be |used..SY|
|000012c0| 4e 4f 50 53 49 53 0d 0d | 77 68 69 63 68 20 63 6f |NOPSIS..|which co|
|000012d0| 6d 6d 61 6e 64 0d 0d 44 | 45 53 43 52 49 50 54 49 |mmand..D|ESCRIPTI|
|000012e0| 4f 4e 0d 0d 22 77 68 69 | 63 68 22 20 65 78 61 6d |ON.."whi|ch" exam|
|000012f0| 69 6e 65 73 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |ines the| command|
|00001300| 2d 73 65 61 72 63 68 2d | 70 61 74 68 2c 20 61 6e |-search-|path, an|
|00001310| 64 20 72 65 74 75 72 6e | 73 20 74 68 65 20 6c 6f |d return|s the lo|
|00001320| 63 61 74 69 6f 6e 20 6f | 66 20 74 68 65 20 63 6f |cation o|f the co|
|00001330| 6d 6d 61 6e 64 20 77 68 | 69 63 68 20 77 6f 75 6c |mmand wh|ich woul|
|00001340| 64 20 62 65 20 65 78 65 | 63 75 74 65 64 2e 0d 0d |d be exe|cuted...|
|00001350| 54 68 65 20 77 68 69 63 | 68 20 63 6f 6d 6d 61 6e |The whic|h comman|
|00001360| 64 20 66 69 72 73 74 20 | 63 68 65 63 6b 73 20 74 |d first |checks t|
|00001370| 6f 20 73 65 65 20 69 66 | 20 74 68 65 20 73 70 65 |o see if| the spe|
|00001380| 63 69 66 69 65 64 20 63 | 6f 6d 6d 61 6e 64 20 69 |cified c|ommand i|
|00001390| 73 20 69 6e 74 65 72 6e | 61 6c 20 74 6f 20 74 68 |s intern|al to th|
|000013a0| 65 20 6e 53 68 65 6c 6c | 20 61 70 70 6c 69 63 61 |e nShell| applica|
|000013b0| 74 69 6f 6e 2e 20 20 45 | 61 63 68 20 64 69 72 65 |tion. E|ach dire|
|000013c0| 63 74 6f 72 79 20 69 6e | 20 74 68 65 20 73 65 61 |ctory in| the sea|
|000013d0| 72 63 68 20 70 61 74 68 | 20 69 73 20 74 68 65 6e |rch path| is then|
|000013e0| 20 65 78 61 6d 69 6e 65 | 64 20 74 6f 20 73 65 65 | examine|d to see|
|000013f0| 20 69 66 20 69 74 20 63 | 6f 6e 74 61 69 6e 73 20 | if it c|ontains |
|00001400| 61 6e 20 65 78 74 65 72 | 6e 61 6c 20 63 6f 6d 6d |an exter|nal comm|
|00001410| 61 6e 64 20 6f 72 20 73 | 68 65 6c 6c 20 73 63 72 |and or s|hell scr|
|00001420| 69 70 74 20 6f 66 20 74 | 68 65 20 67 69 76 65 6e |ipt of t|he given|
|00001430| 20 6e 61 6d 65 2e 20 20 | 41 6e 79 20 27 54 45 58 | name. |Any 'TEX|
|00001440| 54 27 20 66 69 6c 65 20 | 77 69 74 68 20 61 20 6d |T' file |with a m|
|00001450| 61 74 63 68 69 6e 67 20 | 6e 61 6d 65 20 69 73 20 |atching |name is |
|00001460| 61 73 73 75 6d 65 64 20 | 74 6f 20 62 65 20 61 20 |assumed |to be a |
|00001470| 73 68 65 6c 6c 20 73 63 | 72 69 70 74 2e 0d 0d 52 |shell sc|ript...R|
|00001480| 45 54 55 52 4e 20 43 4f | 44 45 53 0d 0d 3c 30 09 |ETURN CO|DES..<0.|
|00001490| 45 72 72 6f 72 20 6f 72 | 20 63 6f 6d 6d 61 6e 64 |Error or| command|
|000014a0| 20 6e 6f 74 20 66 6f 75 | 6e 64 0d 30 09 53 75 63 | not fou|nd.0.Suc|
|000014b0| 63 65 73 73 0d 0d 53 45 | 45 20 41 4c 53 4f 0d 0d |cess..SE|E ALSO..|
|000014c0| 70 61 74 68 2c 20 70 61 | 74 68 63 68 6b 00 00 02 |path, pa|thchk...|
|000014d0| e1 0d 4e 41 4d 45 0d 0d | 70 61 74 68 20 2d 20 64 |..NAME..|path - d|
|000014e0| 65 66 69 6e 65 20 61 20 | 63 6f 6d 6d 61 6e 64 20 |efine a |command |
|000014f0| 73 65 61 72 63 68 20 70 | 61 74 68 0d 0d 53 59 4e |search p|ath..SYN|
|00001500| 4f 50 53 49 53 0d 0d 70 | 61 74 68 20 22 74 68 69 |OPSIS..p|ath "thi|
|00001510| 73 3a 69 73 3a 70 61 74 | 68 3a 6f 6e 65 2f 74 68 |s:is:pat|h:one/th|
|00001520| 69 73 3a 69 73 3a 70 61 | 74 68 3a 74 77 6f 22 0d |is:is:pa|th:two".|
|00001530| 0d 44 45 53 43 52 49 50 | 54 49 4f 4e 0d 0d 54 68 |.DESCRIP|TION..Th|
|00001540| 65 20 22 70 61 74 68 22 | 20 63 6f 6d 6d 61 6e 64 |e "path"| command|
|00001550| 20 61 6c 6c 6f 77 73 20 | 74 68 65 20 75 73 65 72 | allows |the user|
|00001560| 20 74 6f 20 73 70 65 63 | 69 66 79 20 61 20 63 6f | to spec|ify a co|
|00001570| 6d 6d 61 6e 64 20 73 65 | 61 72 63 68 20 70 61 74 |mmand se|arch pat|
|00001580| 68 2e 20 20 54 68 65 20 | 70 61 74 68 20 69 73 20 |h. The |path is |
|00001590| 73 74 6f 72 65 64 20 69 | 6e 20 74 68 65 20 24 50 |stored i|n the $P|
|000015a0| 41 54 48 20 73 68 65 6c | 6c 20 76 61 72 69 61 62 |ATH shel|l variab|
|000015b0| 6c 65 2e 20 20 44 69 72 | 65 63 74 6f 72 69 65 73 |le. Dir|ectories|
|000015c0| 20 61 72 65 20 73 65 70 | 61 72 61 74 65 64 20 62 | are sep|arated b|
|000015d0| 79 20 22 3a 22 2c 20 61 | 6e 64 20 70 61 74 68 73 |y ":", a|nd paths|
|000015e0| 20 61 72 65 20 73 65 70 | 61 72 61 74 65 64 20 62 | are sep|arated b|
|000015f0| 79 20 22 2f 22 2e 20 20 | 41 20 73 69 6e 67 6c 65 |y "/". |A single|
|00001600| 20 22 3a 22 20 6d 61 79 | 20 62 65 20 75 73 65 64 | ":" may| be used|
|00001610| 20 74 6f 20 73 70 65 63 | 69 66 79 20 74 68 65 20 | to spec|ify the |
|00001620| 63 75 72 72 65 6e 74 20 | 64 69 72 65 63 74 6f 72 |current |director|
|00001630| 79 2c 20 61 73 20 69 6e | 20 22 70 61 74 68 20 3a |y, as in| "path :|
|00001640| 2f 74 68 69 73 3a 69 73 | 3a 70 61 74 68 3a 74 77 |/this:is|:path:tw|
|00001650| 6f 22 20 2e 0d 0d 41 6e | 79 20 76 61 72 69 61 62 |o" ...An|y variab|
|00001660| 6c 65 73 20 75 73 65 64 | 20 69 6e 20 74 68 65 20 |les used| in the |
|00001670| 70 61 74 68 20 61 72 65 | 20 65 76 61 6c 75 61 74 |path are| evaluat|
|00001680| 65 64 20 77 68 65 6e 20 | 79 6f 75 20 69 73 73 75 |ed when |you issu|
|00001690| 65 20 74 68 65 20 70 61 | 74 68 20 63 6f 6d 6d 61 |e the pa|th comma|
|000016a0| 6e 64 2e 20 20 49 6e 20 | 74 68 65 20 63 6f 6d 6d |nd. In |the comm|
|000016b0| 61 6e 64 20 22 70 61 74 | 68 20 24 48 4f 4d 45 3a |and "pat|h $HOME:|
|000016c0| 62 69 6e 22 2c 20 74 68 | 65 20 76 61 6c 75 65 20 |bin", th|e value |
|000016d0| 6f 66 20 24 48 4f 4d 45 | 20 69 73 20 65 76 61 6c |of $HOME| is eval|
|000016e0| 75 61 74 65 64 20 69 6d | 6d 65 64 69 61 74 65 6c |uated im|mediatel|
|000016f0| 79 2e 20 20 49 66 20 79 | 6f 75 20 63 68 61 6e 67 |y. If y|ou chang|
|00001700| 65 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 24 |e the va|lue of $|
|00001710| 48 4f 4d 45 20 6c 61 74 | 65 72 2c 20 74 68 65 20 |HOME lat|er, the |
|00001720| 70 61 74 68 20 77 69 6c | 6c 20 63 6f 6e 74 69 6e |path wil|l contin|
|00001730| 75 65 20 74 6f 20 70 6f | 69 6e 74 20 74 6f 20 74 |ue to po|int to t|
|00001740| 68 65 20 6f 72 69 67 69 | 6e 61 6c 20 3a 62 69 6e |he origi|nal :bin|
|00001750| 20 64 69 72 65 63 74 6f | 72 79 2e 0d 0d 54 68 65 | directo|ry...The|
|00001760| 20 64 65 66 61 75 6c 74 | 20 70 61 74 68 20 69 73 | default| path is|
|00001770| 20 22 3a 2f 24 48 4f 4d | 45 3a 62 69 6e 22 2e 0d | ":/$HOM|E:bin"..|
|00001780| 0d 52 45 54 55 52 4e 20 | 43 4f 44 45 53 0d 0d 3c |.RETURN |CODES..<|
|00001790| 30 09 45 72 72 6f 72 0d | 30 09 53 75 63 63 65 73 |0.Error.|0.Succes|
|000017a0| 73 0d 0d 53 45 45 20 41 | 4c 53 4f 0d 0d 77 68 69 |s..SEE A|LSO..whi|
|000017b0| 63 68 00 00 00 f7 0d 4e | 41 4d 45 0d 0d 70 77 64 |ch.....N|AME..pwd|
|000017c0| 20 2d 20 70 72 69 6e 74 | 20 77 6f 72 6b 69 6e 67 | - print| working|
|000017d0| 20 64 69 72 65 63 74 6f | 72 79 0d 0d 53 59 4e 4f | directo|ry..SYNO|
|000017e0| 50 53 49 53 0d 0d 70 77 | 64 0d 0d 44 45 53 43 52 |PSIS..pw|d..DESCR|
|000017f0| 49 50 54 49 4f 4e 0d 0d | 54 68 65 20 22 70 77 64 |IPTION..|The "pwd|
|00001800| 22 20 63 6f 6d 6d 61 6e | 64 20 70 72 69 6e 74 73 |" comman|d prints|
|00001810| 20 74 68 65 20 66 75 6c | 6c 20 70 61 74 68 20 6f | the ful|l path o|
|00001820| 66 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 77 6f |f the cu|rrent wo|
|00001830| 72 6b 69 6e 67 20 64 69 | 72 65 63 74 6f 72 79 2e |rking di|rectory.|
|00001840| 20 20 54 68 65 20 77 6f | 72 6b 69 6e 67 20 64 69 | The wo|rking di|
|00001850| 72 65 63 74 6f 72 79 20 | 69 73 20 73 74 6f 72 65 |rectory |is store|
|00001860| 64 20 69 6e 20 74 68 65 | 20 24 50 57 44 20 73 68 |d in the| $PWD sh|
|00001870| 65 6c 6c 20 76 61 72 69 | 61 62 6c 65 2e 0d 0d 52 |ell vari|able...R|
|00001880| 45 54 55 52 4e 20 43 4f | 44 45 53 0d 0d 3c 30 09 |ETURN CO|DES..<0.|
|00001890| 45 72 72 6f 72 0d 30 09 | 53 75 63 63 65 73 73 0d |Error.0.|Success.|
|000018a0| 0d 53 45 45 20 41 4c 53 | 4f 0d 0d 63 64 00 00 02 |.SEE ALS|O..cd...|
|000018b0| 30 0d 4e 41 4d 45 0d 0d | 63 64 20 2d 20 63 68 61 |0.NAME..|cd - cha|
|000018c0| 6e 67 65 20 77 6f 72 6b | 69 6e 67 20 64 69 72 65 |nge work|ing dire|
|000018d0| 63 74 6f 72 79 0d 0d 53 | 59 4e 4f 50 53 49 53 0d |ctory..S|YNOPSIS.|
|000018e0| 0d 63 64 20 22 74 68 69 | 73 3a 69 73 3a 6d 79 20 |.cd "thi|s:is:my |
|000018f0| 6e 65 77 3a 70 61 74 68 | 22 0d 0d 44 45 53 43 52 |new:path|"..DESCR|
|00001900| 49 50 54 49 4f 4e 0d 0d | 54 68 65 20 22 63 64 22 |IPTION..|The "cd"|
|00001910| 20 63 6f 6d 6d 61 6e 64 | 20 61 6c 6c 6f 77 73 20 | command| allows |
|00001920| 74 68 65 20 75 73 65 72 | 20 74 6f 20 73 70 65 63 |the user| to spec|
|00001930| 69 66 79 20 61 20 6e 65 | 77 20 77 6f 72 6b 69 6e |ify a ne|w workin|
|00001940| 67 20 64 69 72 65 63 74 | 6f 72 79 2e 20 20 54 68 |g direct|ory. Th|
|00001950| 65 20 77 6f 72 6b 69 6e | 67 20 64 69 72 65 63 74 |e workin|g direct|
|00001960| 6f 72 79 20 69 73 20 68 | 65 6c 64 20 69 6e 20 74 |ory is h|eld in t|
|00001970| 68 65 20 24 50 57 44 20 | 73 68 65 6c 6c 20 76 61 |he $PWD |shell va|
|00001980| 72 69 61 62 6c 65 2e 20 | 20 49 66 20 61 20 70 61 |riable. | If a pa|
|00001990| 72 74 69 61 6c 20 70 61 | 74 68 6e 61 6d 65 20 69 |rtial pa|thname i|
|000019a0| 73 20 67 69 76 65 6e 2c | 20 61 20 66 75 6c 6c 20 |s given,| a full |
|000019b0| 70 61 74 68 20 69 73 20 | 67 65 6e 65 72 61 74 65 |path is |generate|
|000019c0| 64 20 75 73 69 6e 67 20 | 74 68 65 20 65 78 69 73 |d using |the exis|
|000019d0| 74 69 6e 67 20 24 50 57 | 44 20 76 61 72 69 61 62 |ting $PW|D variab|
|000019e0| 6c 65 2e 20 20 49 66 20 | 6e 6f 20 70 61 74 68 6e |le. If |no pathn|
|000019f0| 61 6d 65 20 69 73 20 67 | 69 76 65 6e 2c 20 74 68 |ame is g|iven, th|
|00001a00| 65 20 75 73 65 72 20 69 | 73 20 72 65 74 75 72 6e |e user i|s return|
|00001a10| 65 64 20 74 6f 20 74 68 | 65 20 24 48 4f 4d 45 20 |ed to th|e $HOME |
|00001a20| 64 69 72 65 63 74 6f 72 | 79 2e 0d 0d 50 61 74 68 |director|y...Path|
|00001a30| 6e 61 6d 65 73 20 63 6f | 6e 73 69 73 74 20 6f 66 |names co|nsist of|
|00001a40| 20 76 6f 6c 75 6d 65 20 | 61 6e 64 20 64 69 72 65 | volume |and dire|
|00001a50| 63 74 6f 72 79 20 6e 61 | 6d 65 73 20 73 65 70 61 |ctory na|mes sepa|
|00001a60| 72 61 74 65 64 20 62 79 | 20 27 3a 27 20 63 68 61 |rated by| ':' cha|
|00001a70| 72 61 63 74 65 72 73 2e | 20 20 50 61 74 68 6e 61 |racters.| Pathna|
|00001a80| 6d 65 73 20 6d 61 79 20 | 62 65 20 22 71 75 6f 74 |mes may |be "quot|
|00001a90| 65 64 22 2c 20 61 6e 64 | 20 6d 75 73 74 20 62 65 |ed", and| must be|
|00001aa0| 20 77 68 65 6e 20 61 20 | 76 6f 6c 75 6d 65 20 6f | when a |volume o|
|00001ab0| 72 20 64 69 72 65 63 74 | 6f 72 79 20 6e 61 6d 65 |r direct|ory name|
|00001ac0| 20 63 6f 6e 74 61 69 6e | 73 20 61 20 73 70 61 63 | contain|s a spac|
|00001ad0| 65 2e 0d 0d 53 45 45 20 | 41 4c 53 4f 0d 0d 70 77 |e...SEE |ALSO..pw|
|00001ae0| 64 00 00 02 4e 0d 4e 41 | 4d 45 0d 0d 74 68 65 6e |d...N.NA|ME..then|
|00001af0| 20 2d 20 63 6f 6e 64 69 | 74 69 6f 6e 61 6c 20 65 | - condi|tional e|
|00001b00| 78 65 63 75 74 69 6f 6e | 0d 0d 53 59 4e 4f 50 53 |xecution|..SYNOPS|
|00001b10| 49 53 0d 0d 69 66 20 3c | 63 6f 6d 6d 61 6e 64 73 |IS..if <|commands|
|00001b20| 31 3e 20 74 68 65 6e 20 | 3c 63 6f 6d 6d 61 6e 64 |1> then |<command|
|00001b30| 73 32 3e 20 5b 65 6c 73 | 65 20 3c 63 6f 6d 6d 61 |s2> [els|e <comma|
|00001b40| 6e 64 73 33 3e 5d 20 65 | 6e 64 69 66 0d 0d 44 45 |nds3>] e|ndif..DE|
|00001b50| 53 43 52 49 50 54 49 4f | 4e 0d 0d 49 66 20 74 68 |SCRIPTIO|N..If th|
|00001b60| 65 20 72 65 73 75 6c 74 | 20 6f 66 20 74 68 65 20 |e result| of the |
|00001b70| 6c 61 73 74 20 63 6f 6d | 6d 61 6e 64 20 6f 66 20 |last com|mand of |
|00001b80| 74 68 65 20 73 65 74 20 | 3c 63 6f 6d 6d 61 6e 64 |the set |<command|
|00001b90| 73 31 3e 20 63 6f 6d 70 | 6c 65 74 65 73 20 77 69 |s1> comp|letes wi|
|00001ba0| 74 68 6f 75 74 20 65 72 | 72 6f 72 20 28 72 65 73 |thout er|ror (res|
|00001bb0| 75 6c 74 20 3d 20 7a 65 | 72 6f 29 2c 20 74 68 65 |ult = ze|ro), the|
|00001bc0| 6e 20 74 68 65 20 3c 63 | 6f 6d 6d 61 6e 64 73 32 |n the <c|ommands2|
|00001bd0| 3e 20 63 6c 61 75 73 65 | 20 77 69 6c 6c 20 62 65 |> clause| will be|
|00001be0| 20 65 78 65 63 75 74 65 | 64 2e 0d 0d 49 66 20 74 | execute|d...If t|
|00001bf0| 68 65 20 72 65 73 75 6c | 74 20 6f 66 20 74 68 65 |he resul|t of the|
|00001c00| 20 6c 61 73 74 20 63 6f | 6d 6d 61 6e 64 20 6f 66 | last co|mmand of|
|00001c10| 20 74 68 65 20 73 65 74 | 20 3c 63 6f 6d 6d 61 6e | the set| <comman|
|00001c20| 64 73 31 3e 20 70 72 6f | 64 75 63 65 73 20 61 6e |ds1> pro|duces an|
|00001c30| 20 65 72 72 6f 72 20 28 | 72 65 73 75 6c 74 20 3c | error (|result <|
|00001c40| 3e 20 7a 65 72 6f 29 2c | 20 61 6e 64 20 61 6e 20 |> zero),| and an |
|00001c50| 65 6c 73 65 2d 63 6c 61 | 75 73 65 20 69 73 20 70 |else-cla|use is p|
|00001c60| 72 65 73 65 6e 74 2c 20 | 74 68 61 74 20 63 6c 61 |resent, |that cla|
|00001c70| 75 73 65 20 77 69 6c 6c | 20 65 78 65 63 75 74 65 |use will| execute|
|00001c80| 2e 0d 0d 46 6c 6f 77 20 | 6f 66 20 63 6f 6e 74 72 |...Flow |of contr|
|00001c90| 6f 6c 20 73 74 61 74 65 | 6d 65 6e 74 73 20 61 72 |ol state|ments ar|
|00001ca0| 65 20 61 76 61 69 6c 61 | 62 6c 65 20 69 6e 20 6e |e availa|ble in n|
|00001cb0| 53 68 65 6c 6c 2d 50 72 | 6f 28 74 6d 29 0d 0d 52 |Shell-Pr|o(tm)..R|
|00001cc0| 45 54 55 52 4e 20 43 4f | 44 45 53 0d 0d 3c 30 09 |ETURN CO|DES..<0.|
|00001cd0| 45 72 72 6f 72 0d 30 09 | 53 75 63 63 65 73 73 0d |Error.0.|Success.|
|00001ce0| 0d 53 45 45 20 41 4c 53 | 4f 0d 0d 77 68 69 6c 65 |.SEE ALS|O..while|
|00001cf0| 2c 20 75 6e 74 69 6c 0d | 0d 45 58 41 4d 50 4c 45 |, until.|.EXAMPLE|
|00001d00| 53 0d 0d 69 66 20 79 65 | 73 6e 6f 20 22 53 68 6f |S..if ye|sno "Sho|
|00001d10| 75 6c 64 20 49 20 73 61 | 79 20 68 65 6c 6c 6f 3f |uld I sa|y hello?|
|00001d20| 22 20 74 68 65 6e 20 68 | 65 6c 6c 6f 20 65 6e 64 |" then h|ello end|
|00001d30| 69 66 0d 00 00 02 4b 0d | 4e 41 4d 45 0d 0d 69 66 |if....K.|NAME..if|
|00001d40| 20 2d 20 63 6f 6e 64 69 | 74 69 6f 6e 61 6c 20 65 | - condi|tional e|
|00001d50| 78 65 63 75 74 69 6f 6e | 0d 0d 53 59 4e 4f 50 53 |xecution|..SYNOPS|
|00001d60| 49 53 0d 0d 69 66 20 3c | 63 6f 6d 6d 61 6e 64 73 |IS..if <|commands|
|00001d70| 31 3e 20 74 68 65 6e 20 | 3c 63 6f 6d 6d 61 6e 64 |1> then |<command|
|00001d80| 73 32 3e 20 5b 65 6c 73 | 65 20 3c 63 6f 6d 6d 61 |s2> [els|e <comma|
|00001d90| 6e 64 73 33 3e 5d 20 65 | 6e 64 69 66 0d 0d 44 45 |nds3>] e|ndif..DE|
|00001da0| 53 43 52 49 50 54 49 4f | 4e 0d 0d 49 66 20 74 68 |SCRIPTIO|N..If th|
|00001db0| 65 20 72 65 73 75 6c 74 | 20 6f 66 20 74 68 65 20 |e result| of the |
|00001dc0| 6c 61 73 74 20 63 6f 6d | 6d 61 6e 64 20 6f 66 20 |last com|mand of |
|00001dd0| 74 68 65 20 73 65 74 20 | 3c 63 6f 6d 6d 61 6e 64 |the set |<command|
|00001de0| 73 31 3e 20 63 6f 6d 70 | 6c 65 74 65 73 20 77 69 |s1> comp|letes wi|
|00001df0| 74 68 6f 75 74 20 65 72 | 72 6f 72 20 28 72 65 73 |thout er|ror (res|
|00001e00| 75 6c 74 20 3d 20 7a 65 | 72 6f 29 2c 20 74 68 65 |ult = ze|ro), the|
|00001e10| 6e 20 74 68 65 20 3c 63 | 6f 6d 6d 61 6e 64 73 32 |n the <c|ommands2|
|00001e20| 3e 20 63 6c 61 75 73 65 | 20 77 69 6c 6c 20 62 65 |> clause| will be|
|00001e30| 20 65 78 65 63 75 74 65 | 64 2e 0d 0d 49 66 20 74 | execute|d...If t|
|00001e40| 68 65 20 72 65 73 75 6c | 74 20 6f 66 20 74 68 65 |he resul|t of the|
|00001e50| 20 6c 61 73 74 20 63 6f | 6d 6d 61 6e 64 20 6f 66 | last co|mmand of|
|00001e60| 20 74 68 65 20 73 65 74 | 20 3c 63 6f 6d 6d 61 6e | the set| <comman|
|00001e70| 64 73 31 3e 20 70 72 6f | 64 75 63 65 73 20 61 6e |ds1> pro|duces an|
|00001e80| 20 65 72 72 6f 72 20 28 | 72 65 73 75 6c 74 20 3c | error (|result <|
|00001e90| 3e 20 7a 65 72 6f 29 2c | 20 61 6e 64 20 61 6e 20 |> zero),| and an |
|00001ea0| 65 6c 73 65 2d 63 6c 61 | 75 73 65 20 69 73 20 70 |else-cla|use is p|
|00001eb0| 72 65 73 65 6e 74 2c 20 | 74 68 61 74 20 63 6c 61 |resent, |that cla|
|00001ec0| 75 73 65 20 77 69 6c 6c | 20 65 78 65 63 75 74 65 |use will| execute|
|00001ed0| 2e 0d 0d 46 6c 6f 77 20 | 6f 66 20 63 6f 6e 74 72 |...Flow |of contr|
|00001ee0| 6f 6c 20 73 74 61 74 65 | 6d 65 6e 74 73 20 61 72 |ol state|ments ar|
|00001ef0| 65 20 61 76 61 69 6c 61 | 62 6c 65 20 69 6e 20 6e |e availa|ble in n|
|00001f00| 53 68 65 6c 6c 2d 50 72 | 6f 28 74 6d 29 0d 0d 52 |Shell-Pr|o(tm)..R|
|00001f10| 45 54 55 52 4e 20 43 4f | 44 45 53 0d 0d 3c 30 09 |ETURN CO|DES..<0.|
|00001f20| 45 72 72 6f 72 0d 30 09 | 53 75 63 63 65 73 73 0d |Error.0.|Success.|
|00001f30| 0d 53 45 45 20 41 4c 53 | 4f 0d 0d 77 68 69 6c 65 |.SEE ALS|O..while|
|00001f40| 2c 20 75 6e 74 69 6c 0d | 0d 45 58 41 4d 50 4c 45 |, until.|.EXAMPLE|
|00001f50| 53 0d 0d 69 66 20 79 65 | 73 6e 6f 20 22 53 68 6f |S..if ye|sno "Sho|
|00001f60| 75 6c 64 20 49 20 73 61 | 79 20 68 65 6c 6c 6f 3f |uld I sa|y hello?|
|00001f70| 22 20 74 68 65 6e 20 68 | 65 6c 6c 6f 20 65 6e 64 |" then h|ello end|
|00001f80| 69 66 00 00 02 4e 0d 4e | 41 4d 45 0d 0d 65 6c 73 |if...N.N|AME..els|
|00001f90| 65 20 2d 20 63 6f 6e 64 | 69 74 69 6f 6e 61 6c 20 |e - cond|itional |
|00001fa0| 65 78 65 63 75 74 69 6f | 6e 0d 0d 53 59 4e 4f 50 |executio|n..SYNOP|
|00001fb0| 53 49 53 0d 0d 69 66 20 | 3c 63 6f 6d 6d 61 6e 64 |SIS..if |<command|
|00001fc0| 73 31 3e 20 74 68 65 6e | 20 3c 63 6f 6d 6d 61 6e |s1> then| <comman|
|00001fd0| 64 73 32 3e 20 5b 65 6c | 73 65 20 3c 63 6f 6d 6d |ds2> [el|se <comm|
|00001fe0| 61 6e 64 73 33 3e 5d 20 | 65 6e 64 69 66 0d 0d 44 |ands3>] |endif..D|
|00001ff0| 45 53 43 52 49 50 54 49 | 4f 4e 0d 0d 49 66 20 74 |ESCRIPTI|ON..If t|
|00002000| 68 65 20 72 65 73 75 6c | 74 20 6f 66 20 74 68 65 |he resul|t of the|
|00002010| 20 6c 61 73 74 20 63 6f | 6d 6d 61 6e 64 20 6f 66 | last co|mmand of|
|00002020| 20 74 68 65 20 73 65 74 | 20 3c 63 6f 6d 6d 61 6e | the set| <comman|
|00002030| 64 73 31 3e 20 63 6f 6d | 70 6c 65 74 65 73 20 77 |ds1> com|pletes w|
|00002040| 69 74 68 6f 75 74 20 65 | 72 72 6f 72 20 28 72 65 |ithout e|rror (re|
|00002050| 73 75 6c 74 20 3d 20 7a | 65 72 6f 29 2c 20 74 68 |sult = z|ero), th|
|00002060| 65 6e 20 74 68 65 20 3c | 63 6f 6d 6d 61 6e 64 73 |en the <|commands|
|00002070| 32 3e 20 63 6c 61 75 73 | 65 20 77 69 6c 6c 20 62 |2> claus|e will b|
|00002080| 65 20 65 78 65 63 75 74 | 65 64 2e 0d 0d 49 66 20 |e execut|ed...If |
|00002090| 74 68 65 20 72 65 73 75 | 6c 74 20 6f 66 20 74 68 |the resu|lt of th|
|000020a0| 65 20 6c 61 73 74 20 63 | 6f 6d 6d 61 6e 64 20 6f |e last c|ommand o|
|000020b0| 66 20 74 68 65 20 73 65 | 74 20 3c 63 6f 6d 6d 61 |f the se|t <comma|
|000020c0| 6e 64 73 31 3e 20 70 72 | 6f 64 75 63 65 73 20 61 |nds1> pr|oduces a|
|000020d0| 6e 20 65 72 72 6f 72 20 | 28 72 65 73 75 6c 74 20 |n error |(result |
|000020e0| 3c 3e 20 7a 65 72 6f 29 | 2c 20 61 6e 64 20 61 6e |<> zero)|, and an|
|000020f0| 20 65 6c 73 65 2d 63 6c | 61 75 73 65 20 69 73 20 | else-cl|ause is |
|00002100| 70 72 65 73 65 6e 74 2c | 20 74 68 61 74 20 63 6c |present,| that cl|
|00002110| 61 75 73 65 20 77 69 6c | 6c 20 65 78 65 63 75 74 |ause wil|l execut|
|00002120| 65 2e 0d 0d 46 6c 6f 77 | 20 6f 66 20 63 6f 6e 74 |e...Flow| of cont|
|00002130| 72 6f 6c 20 73 74 61 74 | 65 6d 65 6e 74 73 20 61 |rol stat|ements a|
|00002140| 72 65 20 61 76 61 69 6c | 61 62 6c 65 20 69 6e 20 |re avail|able in |
|00002150| 6e 53 68 65 6c 6c 2d 50 | 72 6f 28 74 6d 29 0d 0d |nShell-P|ro(tm)..|
|00002160| 52 45 54 55 52 4e 20 43 | 4f 44 45 53 0d 0d 3c 30 |RETURN C|ODES..<0|
|00002170| 09 45 72 72 6f 72 0d 30 | 09 53 75 63 63 65 73 73 |.Error.0|.Success|
|00002180| 0d 0d 53 45 45 20 41 4c | 53 4f 0d 0d 77 68 69 6c |..SEE AL|SO..whil|
|00002190| 65 2c 20 75 6e 74 69 6c | 0d 0d 45 58 41 4d 50 4c |e, until|..EXAMPL|
|000021a0| 45 53 0d 0d 69 66 20 79 | 65 73 6e 6f 20 22 53 68 |ES..if y|esno "Sh|
|000021b0| 6f 75 6c 64 20 49 20 73 | 61 79 20 68 65 6c 6c 6f |ould I s|ay hello|
|000021c0| 3f 22 20 74 68 65 6e 20 | 68 65 6c 6c 6f 20 65 6e |?" then |hello en|
|000021d0| 64 69 66 0d 00 00 02 4f | 0d 4e 41 4d 45 0d 0d 65 |dif....O|.NAME..e|
|000021e0| 6e 64 69 66 20 2d 20 63 | 6f 6e 64 69 74 69 6f 6e |ndif - c|ondition|
|000021f0| 61 6c 20 65 78 65 63 75 | 74 69 6f 6e 0d 0d 53 59 |al execu|tion..SY|
|00002200| 4e 4f 50 53 49 53 0d 0d | 69 66 20 3c 63 6f 6d 6d |NOPSIS..|if <comm|
|00002210| 61 6e 64 73 31 3e 20 74 | 68 65 6e 20 3c 63 6f 6d |ands1> t|hen <com|
|00002220| 6d 61 6e 64 73 32 3e 20 | 5b 65 6c 73 65 20 3c 63 |mands2> |[else <c|
|00002230| 6f 6d 6d 61 6e 64 73 33 | 3e 5d 20 65 6e 64 69 66 |ommands3|>] endif|
|00002240| 0d 0d 44 45 53 43 52 49 | 50 54 49 4f 4e 0d 0d 49 |..DESCRI|PTION..I|
|00002250| 66 20 74 68 65 20 72 65 | 73 75 6c 74 20 6f 66 20 |f the re|sult of |
|00002260| 74 68 65 20 6c 61 73 74 | 20 63 6f 6d 6d 61 6e 64 |the last| command|
|00002270| 20 6f 66 20 74 68 65 20 | 73 65 74 20 3c 63 6f 6d | of the |set <com|
|00002280| 6d 61 6e 64 73 31 3e 20 | 63 6f 6d 70 6c 65 74 65 |mands1> |complete|
|00002290| 73 20 77 69 74 68 6f 75 | 74 20 65 72 72 6f 72 20 |s withou|t error |
|000022a0| 28 72 65 73 75 6c 74 20 | 3d 20 7a 65 72 6f 29 2c |(result |= zero),|
|000022b0| 20 74 68 65 6e 20 74 68 | 65 20 3c 63 6f 6d 6d 61 | then th|e <comma|
|000022c0| 6e 64 73 32 3e 20 63 6c | 61 75 73 65 20 77 69 6c |nds2> cl|ause wil|
|000022d0| 6c 20 62 65 20 65 78 65 | 63 75 74 65 64 2e 0d 0d |l be exe|cuted...|
|000022e0| 49 66 20 74 68 65 20 72 | 65 73 75 6c 74 20 6f 66 |If the r|esult of|
|000022f0| 20 74 68 65 20 6c 61 73 | 74 20 63 6f 6d 6d 61 6e | the las|t comman|
|00002300| 64 20 6f 66 20 74 68 65 | 20 73 65 74 20 3c 63 6f |d of the| set <co|
|00002310| 6d 6d 61 6e 64 73 31 3e | 20 70 72 6f 64 75 63 65 |mmands1>| produce|
|00002320| 73 20 61 6e 20 65 72 72 | 6f 72 20 28 72 65 73 75 |s an err|or (resu|
|00002330| 6c 74 20 3c 3e 20 7a 65 | 72 6f 29 2c 20 61 6e 64 |lt <> ze|ro), and|
|00002340| 20 61 6e 20 65 6c 73 65 | 2d 63 6c 61 75 73 65 20 | an else|-clause |
|00002350| 69 73 20 70 72 65 73 65 | 6e 74 2c 20 74 68 61 74 |is prese|nt, that|
|00002360| 20 63 6c 61 75 73 65 20 | 77 69 6c 6c 20 65 78 65 | clause |will exe|
|00002370| 63 75 74 65 2e 0d 0d 46 | 6c 6f 77 20 6f 66 20 63 |cute...F|low of c|
|00002380| 6f 6e 74 72 6f 6c 20 73 | 74 61 74 65 6d 65 6e 74 |ontrol s|tatement|
|00002390| 73 20 61 72 65 20 61 76 | 61 69 6c 61 62 6c 65 20 |s are av|ailable |
|000023a0| 69 6e 20 6e 53 68 65 6c | 6c 2d 50 72 6f 28 74 6d |in nShel|l-Pro(tm|
|000023b0| 29 0d 0d 52 45 54 55 52 | 4e 20 43 4f 44 45 53 0d |)..RETUR|N CODES.|
|000023c0| 0d 3c 30 09 45 72 72 6f | 72 0d 30 09 53 75 63 63 |.<0.Erro|r.0.Succ|
|000023d0| 65 73 73 0d 0d 53 45 45 | 20 41 4c 53 4f 0d 0d 77 |ess..SEE| ALSO..w|
|000023e0| 68 69 6c 65 2c 20 75 6e | 74 69 6c 0d 0d 45 58 41 |hile, un|til..EXA|
|000023f0| 4d 50 4c 45 53 0d 0d 69 | 66 20 79 65 73 6e 6f 20 |MPLES..i|f yesno |
|00002400| 22 53 68 6f 75 6c 64 20 | 49 20 73 61 79 20 68 65 |"Should |I say he|
|00002410| 6c 6c 6f 3f 22 20 74 68 | 65 6e 20 68 65 6c 6c 6f |llo?" th|en hello|
|00002420| 20 65 6e 64 69 66 0d 00 | 00 02 6c 0d 4e 41 4d 45 | endif..|..l.NAME|
|00002430| 0d 0d 77 68 69 6c 65 20 | 2d 20 63 6f 6e 64 69 74 |..while |- condit|
|00002440| 69 6f 6e 61 6c 20 65 78 | 65 63 75 74 69 6f 6e 0d |ional ex|ecution.|
|00002450| 0d 53 59 4e 4f 50 53 49 | 53 0d 0d 77 68 69 6c 65 |.SYNOPSI|S..while|
|00002460| 20 3c 63 6f 6d 6d 61 6e | 64 73 31 3e 20 64 6f 20 | <comman|ds1> do |
|00002470| 3c 63 6f 6d 6d 61 6e 64 | 73 32 3e 20 64 6f 6e 65 |<command|s2> done|
|00002480| 0d 0d 44 45 53 43 52 49 | 50 54 49 4f 4e 0d 0d 49 |..DESCRI|PTION..I|
|00002490| 6e 20 74 68 69 73 20 73 | 74 72 75 63 74 75 72 65 |n this s|tructure|
|000024a0| 2c 20 74 68 65 20 3c 63 | 6f 6d 6d 61 6e 64 73 31 |, the <c|ommands1|
|000024b0| 3e 20 63 6c 61 75 73 65 | 20 77 69 6c 6c 20 61 6c |> clause| will al|
|000024c0| 77 61 79 73 20 65 78 65 | 63 75 74 65 2e 20 20 49 |ways exe|cute. I|
|000024d0| 66 20 74 68 65 20 72 65 | 73 75 6c 74 20 6f 66 20 |f the re|sult of |
|000024e0| 74 68 65 20 6c 61 73 74 | 20 63 6f 6d 6d 61 6e 64 |the last| command|
|000024f0| 20 6f 66 20 74 68 65 20 | 73 65 74 20 63 6f 6d 70 | of the |set comp|
|00002500| 6c 65 74 65 73 20 77 69 | 74 68 6f 75 74 20 65 72 |letes wi|thout er|
|00002510| 72 6f 72 20 28 72 65 73 | 75 6c 74 20 3d 20 7a 65 |ror (res|ult = ze|
|00002520| 72 6f 29 2c 20 74 68 65 | 6e 20 74 68 65 20 3c 63 |ro), the|n the <c|
|00002530| 6f 6d 6d 61 6e 64 73 32 | 3e 20 63 6c 61 75 73 65 |ommands2|> clause|
|00002540| 20 77 69 6c 6c 20 62 65 | 20 65 78 65 63 75 74 65 | will be| execute|
|00002550| 64 2e 20 20 43 6f 6e 74 | 72 6f 6c 20 77 69 6c 6c |d. Cont|rol will|
|00002560| 20 74 68 65 6e 20 72 65 | 74 75 72 6e 20 74 6f 20 | then re|turn to |
|00002570| 74 68 65 20 3c 63 6f 6d | 6d 61 6e 64 73 31 3e 20 |the <com|mands1> |
|00002580| 63 6c 61 75 73 65 2c 20 | 61 6e 64 20 74 68 65 20 |clause, |and the |
|00002590| 70 72 6f 63 65 73 73 20 | 77 69 6c 6c 20 63 6f 6e |process |will con|
|000025a0| 74 69 6e 75 65 20 75 6e | 74 69 6c 20 74 68 65 20 |tinue un|til the |
|000025b0| 6c 61 73 74 20 63 6f 6d | 6d 61 6e 64 20 6f 66 20 |last com|mand of |
|000025c0| 74 68 69 73 20 73 65 74 | 20 70 72 6f 64 75 63 65 |this set| produce|
|000025d0| 73 20 61 6e 20 65 72 72 | 6f 72 20 28 72 65 73 75 |s an err|or (resu|
|000025e0| 6c 74 20 3c 3e 20 30 29 | 2e 0d 0d 46 6c 6f 77 20 |lt <> 0)|...Flow |
|000025f0| 6f 66 20 63 6f 6e 74 72 | 6f 6c 20 73 74 61 74 65 |of contr|ol state|
|00002600| 6d 65 6e 74 73 20 61 72 | 65 20 61 76 61 69 6c 61 |ments ar|e availa|
|00002610| 62 6c 65 20 69 6e 20 6e | 53 68 65 6c 6c 2d 50 72 |ble in n|Shell-Pr|
|00002620| 6f 28 74 6d 29 0d 0d 52 | 45 54 55 52 4e 20 43 4f |o(tm)..R|ETURN CO|
|00002630| 44 45 53 0d 0d 3c 30 09 | 45 72 72 6f 72 0d 30 09 |DES..<0.|Error.0.|
|00002640| 53 75 63 63 65 73 73 0d | 0d 53 45 45 20 41 4c 53 |Success.|.SEE ALS|
|00002650| 4f 0d 0d 75 6e 74 69 6c | 2c 20 69 66 0d 0d 45 58 |O..until|, if..EX|
|00002660| 41 4d 50 4c 45 53 0d 0d | 77 68 69 6c 65 20 79 65 |AMPLES..|while ye|
|00002670| 73 6e 6f 20 22 53 68 6f | 75 6c 64 20 49 20 73 61 |sno "Sho|uld I sa|
|00002680| 79 20 68 65 6c 6c 6f 3f | 22 20 64 6f 20 68 65 6c |y hello?|" do hel|
|00002690| 6c 6f 20 64 6f 6e 65 00 | 00 02 74 0d 4e 41 4d 45 |lo done.|..t.NAME|
|000026a0| 0d 0d 75 6e 74 69 6c 20 | 2d 20 63 6f 6e 64 69 74 |..until |- condit|
|000026b0| 69 6f 6e 61 6c 20 65 78 | 65 63 75 74 69 6f 6e 0d |ional ex|ecution.|
|000026c0| 0d 53 59 4e 4f 50 53 49 | 53 0d 0d 75 6e 74 69 6c |.SYNOPSI|S..until|
|000026d0| 20 3c 63 6f 6d 6d 61 6e | 64 73 31 3e 20 64 6f 20 | <comman|ds1> do |
|000026e0| 3c 63 6f 6d 6d 61 6e 64 | 73 32 3e 20 64 6f 6e 65 |<command|s2> done|
|000026f0| 0d 0d 44 45 53 43 52 49 | 50 54 49 4f 4e 0d 0d 49 |..DESCRI|PTION..I|
|00002700| 6e 20 74 68 69 73 20 73 | 74 72 75 63 74 75 72 65 |n this s|tructure|
|00002710| 2c 20 74 68 65 20 3c 63 | 6f 6d 6d 61 6e 64 73 31 |, the <c|ommands1|
|00002720| 3e 20 63 6c 61 75 73 65 | 20 77 69 6c 6c 20 61 6c |> clause| will al|
|00002730| 77 61 79 73 20 65 78 65 | 63 75 74 65 2e 20 20 49 |ways exe|cute. I|
|00002740| 66 20 74 68 65 20 72 65 | 73 75 6c 74 20 6f 66 20 |f the re|sult of |
|00002750| 74 68 65 20 6c 61 73 74 | 20 63 6f 6d 6d 61 6e 64 |the last| command|
|00002760| 20 6f 66 20 74 68 65 20 | 73 65 74 20 70 72 6f 64 | of the |set prod|
|00002770| 75 63 65 73 20 61 6e 20 | 65 72 72 6f 72 20 28 72 |uces an |error (r|
|00002780| 65 73 75 6c 74 20 3c 3e | 20 7a 65 72 6f 29 2c 20 |esult <>| zero), |
|00002790| 74 68 65 6e 20 74 68 65 | 20 3c 63 6f 6d 6d 61 6e |then the| <comman|
|000027a0| 64 73 32 3e 20 63 6c 61 | 75 73 65 20 77 69 6c 6c |ds2> cla|use will|
|000027b0| 20 62 65 20 65 78 65 63 | 75 74 65 64 2e 20 20 43 | be exec|uted. C|
|000027c0| 6f 6e 74 72 6f 6c 20 77 | 69 6c 6c 20 74 68 65 6e |ontrol w|ill then|
|000027d0| 20 72 65 74 75 72 6e 20 | 74 6f 20 74 68 65 20 3c | return |to the <|
|000027e0| 63 6f 6d 6d 61 6e 64 73 | 31 3e 20 63 6c 61 75 73 |commands|1> claus|
|000027f0| 65 2c 20 61 6e 64 20 74 | 68 65 20 70 72 6f 63 65 |e, and t|he proce|
|00002800| 73 73 20 77 69 6c 6c 20 | 63 6f 6e 74 69 6e 75 65 |ss will |continue|
|00002810| 20 75 6e 74 69 6c 20 74 | 68 65 20 6c 61 73 74 20 | until t|he last |
|00002820| 63 6f 6d 6d 61 6e 64 20 | 6f 66 20 74 68 69 73 20 |command |of this |
|00002830| 73 65 74 20 63 6f 6d 70 | 6c 65 74 65 73 20 77 69 |set comp|letes wi|
|00002840| 74 68 6f 75 74 20 65 72 | 72 6f 72 20 28 72 65 73 |thout er|ror (res|
|00002850| 75 6c 74 20 3d 20 30 29 | 2e 0d 0d 46 6c 6f 77 20 |ult = 0)|...Flow |
|00002860| 6f 66 20 63 6f 6e 74 72 | 6f 6c 20 73 74 61 74 65 |of contr|ol state|
|00002870| 6d 65 6e 74 73 20 61 72 | 65 20 61 76 61 69 6c 61 |ments ar|e availa|
|00002880| 62 6c 65 20 69 6e 20 6e | 53 68 65 6c 6c 2d 50 72 |ble in n|Shell-Pr|
|00002890| 6f 28 74 6d 29 0d 0d 52 | 45 54 55 52 4e 20 43 4f |o(tm)..R|ETURN CO|
|000028a0| 44 45 53 0d 0d 3c 30 09 | 45 72 72 6f 72 0d 30 09 |DES..<0.|Error.0.|
|000028b0| 53 75 63 63 65 73 73 0d | 0d 53 45 45 20 41 4c 53 |Success.|.SEE ALS|
|000028c0| 4f 0d 0d 77 68 69 6c 65 | 2c 20 69 66 0d 0d 45 58 |O..while|, if..EX|
|000028d0| 41 4d 50 4c 45 53 0d 0d | 75 6e 74 69 6c 20 79 65 |AMPLES..|until ye|
|000028e0| 73 6e 6f 20 22 53 68 6f | 75 6c 64 20 49 20 53 54 |sno "Sho|uld I ST|
|000028f0| 4f 50 20 73 61 79 69 6e | 67 20 68 65 6c 6c 6f 3f |OP sayin|g hello?|
|00002900| 22 20 64 6f 20 68 65 6c | 6c 6f 20 64 6f 6e 65 00 |" do hel|lo done.|
|00002910| 00 00 ca 0d 4e 41 4d 45 | 0d 0d 64 6f 20 2d 20 63 |....NAME|..do - c|
|00002920| 6f 6e 64 69 74 69 6f 6e | 61 6c 20 65 78 65 63 75 |ondition|al execu|
|00002930| 74 69 6f 6e 0d 0d 53 59 | 4e 4f 50 53 49 53 0d 0d |tion..SY|NOPSIS..|
|00002940| 77 68 69 6c 65 20 3c 63 | 6f 6d 6d 61 6e 64 73 31 |while <c|ommands1|
|00002950| 3e 20 64 6f 20 3c 63 6f | 6d 6d 61 6e 64 73 32 3e |> do <co|mmands2>|
|00002960| 20 64 6f 6e 65 0d 0d 6f | 72 0d 0d 75 6e 74 69 6c | done..o|r..until|
|00002970| 20 3c 63 6f 6d 6d 61 6e | 64 73 31 3e 20 64 6f 20 | <comman|ds1> do |
|00002980| 3c 63 6f 6d 6d 61 6e 64 | 73 32 3e 20 64 6f 6e 65 |<command|s2> done|
|00002990| 0d 0d 44 45 53 43 52 49 | 50 54 49 4f 4e 0d 0d 53 |..DESCRI|PTION..S|
|000029a0| 65 65 20 74 68 65 20 6d | 61 6e 20 70 61 67 65 20 |ee the m|an page |
|000029b0| 66 6f 72 20 22 77 68 69 | 6c 65 22 20 6f 72 20 22 |for "whi|le" or "|
|000029c0| 75 6e 74 69 6c 22 20 66 | 6f 72 20 6d 6f 72 65 20 |until" f|or more |
|000029d0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 2e 0d 00 00 00 |informat|ion.....|
|000029e0| cc 0d 4e 41 4d 45 0d 0d | 64 6f 6e 65 20 2d 20 63 |..NAME..|done - c|
|000029f0| 6f 6e 64 69 74 69 6f 6e | 61 6c 20 65 78 65 63 75 |ondition|al execu|
|00002a00| 74 69 6f 6e 0d 0d 53 59 | 4e 4f 50 53 49 53 0d 0d |tion..SY|NOPSIS..|
|00002a10| 77 68 69 6c 65 20 3c 63 | 6f 6d 6d 61 6e 64 73 31 |while <c|ommands1|
|00002a20| 3e 20 64 6f 20 3c 63 6f | 6d 6d 61 6e 64 73 32 3e |> do <co|mmands2>|
|00002a30| 20 64 6f 6e 65 0d 0d 6f | 72 0d 0d 75 6e 74 69 6c | done..o|r..until|
|00002a40| 20 3c 63 6f 6d 6d 61 6e | 64 73 31 3e 20 64 6f 20 | <comman|ds1> do |
|00002a50| 3c 63 6f 6d 6d 61 6e 64 | 73 32 3e 20 64 6f 6e 65 |<command|s2> done|
|00002a60| 0d 0d 44 45 53 43 52 49 | 50 54 49 4f 4e 0d 0d 53 |..DESCRI|PTION..S|
|00002a70| 65 65 20 74 68 65 20 6d | 61 6e 20 70 61 67 65 20 |ee the m|an page |
|00002a80| 66 6f 72 20 22 77 68 69 | 6c 65 22 20 6f 72 20 22 |for "whi|le" or "|
|00002a90| 75 6e 74 69 6c 22 20 66 | 6f 72 20 6d 6f 72 65 20 |until" f|or more |
|00002aa0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 2e 0d 00 00 01 |informat|ion.....|
|00002ab0| e0 0d 4e 41 4d 45 0d 0d | 65 78 69 74 20 2d 20 65 |..NAME..|exit - e|
|00002ac0| 78 69 74 20 73 63 72 69 | 70 74 0d 0d 53 59 4e 4f |xit scri|pt..SYNO|
|00002ad0| 50 53 49 53 0d 0d 65 78 | 69 74 20 5b 72 65 74 75 |PSIS..ex|it [retu|
|00002ae0| 72 6e 20 63 6f 64 65 5d | 0d 0d 44 45 53 43 52 49 |rn code]|..DESCRI|
|00002af0| 50 54 49 4f 4e 0d 0d 54 | 68 65 20 22 65 78 69 74 |PTION..T|he "exit|
|00002b00| 22 20 63 6f 6d 6d 61 6e | 64 20 63 61 75 73 65 73 |" comman|d causes|
|00002b10| 20 61 6e 20 69 6d 6d 65 | 64 69 61 74 65 20 72 65 | an imme|diate re|
|00002b20| 74 75 72 6e 20 66 72 6f | 6d 20 61 20 73 63 72 69 |turn fro|m a scri|
|00002b30| 70 74 2e 20 20 41 6e 20 | 69 6e 74 65 67 65 72 20 |pt. An |integer |
|00002b40| 72 65 74 75 72 6e 20 63 | 6f 64 65 20 6d 61 79 20 |return c|ode may |
|00002b50| 62 65 20 73 65 74 20 61 | 6e 64 20 6c 61 74 65 72 |be set a|nd later|
|00002b60| 20 61 63 63 65 73 73 65 | 64 20 75 73 69 6e 67 20 | accesse|d using |
|00002b70| 74 68 65 20 24 3f 20 70 | 73 65 75 64 6f 20 76 61 |the $? p|seudo va|
|00002b80| 72 69 61 62 6c 65 2e 20 | 20 57 68 65 6e 20 6e 6f |riable. | When no|
|00002b90| 20 70 61 72 61 6d 65 74 | 65 72 20 69 73 20 67 69 | paramet|er is gi|
|00002ba0| 76 65 6e 2c 20 61 20 63 | 6f 64 65 20 6f 66 20 30 |ven, a c|ode of 0|
|00002bb0| 20 69 73 20 72 65 74 75 | 72 6e 65 64 2e 0d 0d 57 | is retu|rned...W|
|00002bc0| 68 65 6e 20 74 68 65 20 | 22 65 78 69 74 22 20 63 |hen the |"exit" c|
|00002bd0| 6f 6d 6d 61 6e 64 20 69 | 73 20 75 73 65 64 20 6f |ommand i|s used o|
|00002be0| 6e 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |n the co|mmand li|
|00002bf0| 6e 65 2c 20 69 74 20 63 | 61 6e 63 65 6c 73 20 61 |ne, it c|ancels a|
|00002c00| 6c 6c 20 70 72 6f 63 65 | 73 73 69 6e 67 20 61 6e |ll proce|ssing an|
|00002c10| 64 20 73 65 74 73 20 74 | 68 65 20 73 70 65 63 69 |d sets t|he speci|
|00002c20| 66 69 65 64 20 72 65 74 | 75 72 6e 20 63 6f 64 65 |fied ret|urn code|
|00002c30| 2e 0d 0d 45 58 41 4d 50 | 4c 45 53 0d 0d 23 0d 23 |...EXAMP|LES..#.#|
|00002c40| 20 74 65 73 74 20 75 73 | 61 67 65 0d 23 0d 69 66 | test us|age.#.if|
|00002c50| 20 2e 6e 65 2e 20 24 23 | 20 32 20 74 68 65 6e 0d | .ne. $#| 2 then.|
|00002c60| 20 20 20 20 65 63 68 6f | 20 22 55 73 61 67 65 3a | echo| "Usage:|
|00002c70| 20 63 6d 64 20 66 69 6c | 65 6e 61 6d 65 22 0d 20 | cmd fil|ename". |
|00002c80| 20 20 20 65 78 69 74 20 | 2d 31 0d 65 6e 64 69 66 | exit |-1.endif|
|00002c90| 0d 00 00 02 55 0d 4e 41 | 4d 45 0d 0d 65 78 70 6f |....U.NA|ME..expo|
|00002ca0| 72 74 20 2d 20 65 78 70 | 6f 72 74 20 61 20 73 68 |rt - exp|ort a sh|
|00002cb0| 65 6c 6c 20 76 61 72 69 | 61 62 6c 65 20 66 72 6f |ell vari|able fro|
|00002cc0| 6d 20 61 20 73 63 72 69 | 70 74 0d 0d 53 59 4e 4f |m a scri|pt..SYNO|
|00002cd0| 50 53 49 53 0d 0d 65 78 | 70 6f 72 74 20 76 61 72 |PSIS..ex|port var|
|00002ce0| 69 61 62 6c 65 5f 6e 61 | 6d 65 0d 0d 44 45 53 43 |iable_na|me..DESC|
|00002cf0| 52 49 50 54 49 4f 4e 0d | 0d 54 68 65 20 22 65 78 |RIPTION.|.The "ex|
|00002d00| 70 6f 72 74 22 20 63 6f | 6d 6d 61 6e 64 20 63 6f |port" co|mmand co|
|00002d10| 70 69 65 73 20 61 20 73 | 68 65 6c 6c 20 76 61 72 |pies a s|hell var|
|00002d20| 69 61 62 6c 65 20 66 72 | 6f 6d 20 74 68 65 20 63 |iable fr|om the c|
|00002d30| 75 72 72 65 6e 74 20 73 | 63 72 69 70 74 20 65 6e |urrent s|cript en|
|00002d40| 76 69 72 6f 6e 6d 65 6e | 74 20 74 6f 20 74 68 61 |vironmen|t to tha|
|00002d50| 74 20 6f 66 20 74 68 65 | 20 70 61 72 65 6e 74 2e |t of the| parent.|
|00002d60| 20 20 54 68 65 20 22 65 | 78 70 6f 72 74 22 20 6f | The "e|xport" o|
|00002d70| 70 65 72 61 74 69 6f 6e | 20 63 6f 70 69 65 73 20 |peration| copies |
|00002d80| 76 61 72 69 61 62 6c 65 | 73 20 75 70 20 61 20 73 |variable|s up a s|
|00002d90| 69 6e 67 6c 65 20 6c 65 | 76 65 6c 2e 20 20 54 6f |ingle le|vel. To|
|00002da0| 20 65 78 70 6f 72 74 20 | 76 61 72 69 61 62 6c 65 | export |variable|
|00002db0| 73 20 66 72 6f 6d 20 6e | 65 73 74 65 64 20 73 63 |s from n|ested sc|
|00002dc0| 72 69 70 74 73 2c 20 61 | 20 73 65 72 69 65 73 20 |ripts, a| series |
|00002dd0| 6f 66 20 22 65 78 70 6f | 72 74 22 20 63 6f 6d 6d |of "expo|rt" comm|
|00002de0| 61 6e 64 73 20 77 6f 75 | 6c 64 20 62 65 20 72 65 |ands wou|ld be re|
|00002df0| 71 75 69 72 65 64 2e 0d | 0d 54 68 65 20 22 65 78 |quired..|.The "ex|
|00002e00| 70 6f 72 74 22 20 63 6f | 6d 6d 61 6e 64 20 73 68 |port" co|mmand sh|
|00002e10| 6f 75 6c 64 20 6f 6e 6c | 79 20 62 65 20 75 73 65 |ould onl|y be use|
|00002e20| 64 20 66 72 6f 6d 20 77 | 69 74 68 69 6e 20 73 63 |d from w|ithin sc|
|00002e30| 72 69 70 74 73 2c 20 61 | 6e 64 20 66 61 69 6c 73 |ripts, a|nd fails|
|00002e40| 20 77 68 65 6e 20 74 79 | 70 65 64 20 64 69 72 65 | when ty|ped dire|
|00002e50| 63 74 6c 79 20 6f 6e 20 | 74 68 65 20 63 6f 6d 6d |ctly on |the comm|
|00002e60| 61 6e 64 20 6c 69 6e 65 | 2e 0d 0d 45 58 41 4d 50 |and line|...EXAMP|
|00002e70| 4c 45 53 0d 0d 23 0d 23 | 20 73 65 74 20 74 68 65 |LES..#.#| set the|
|00002e80| 20 77 6f 72 6b 69 6e 67 | 20 64 69 72 65 63 74 6f | working| directo|
|00002e90| 72 79 20 61 6e 64 20 65 | 78 70 6f 72 74 20 74 68 |ry and e|xport th|
|00002ea0| 65 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |e corres|ponding |
|00002eb0| 76 61 72 69 61 62 6c 65 | 0d 23 0d 63 64 20 22 6d |variable|.#.cd "m|
|00002ec0| 79 20 64 69 73 6b 3a 6d | 79 20 66 61 76 6f 72 69 |y disk:m|y favori|
|00002ed0| 74 65 20 74 6f 6f 6c 73 | 3a 74 6f 6f 6c 73 22 0d |te tools|:tools".|
|00002ee0| 65 78 70 6f 72 74 20 50 | 57 44 00 00 01 00 00 00 |export P|WD......|
|00002ef0| 2e 98 00 00 2d 98 00 00 | 02 a7 00 49 64 fc 0a 4a |....-...|...Id..J|
|00002f00| 00 00 00 1c 01 4a 00 02 | 4e 53 48 43 00 00 00 1a |.....J..|NSHC....|
|00002f10| 76 65 72 73 00 01 00 26 | 54 45 58 54 00 13 00 3e |vers...&|TEXT...>|
|00002f20| 3e 80 00 00 20 00 00 00 | 00 49 65 dc 00 01 ff ff |>... ...|.Ie.....|
|00002f30| 00 00 06 56 00 49 64 2c | 00 02 ff ff 00 00 06 91 |...V.Id,|........|
|00002f40| 00 00 00 00 3e 80 00 08 | 00 00 06 bc 00 49 65 c4 |....>...|.....Ie.|
|00002f50| 3e 8a 00 18 00 00 08 c3 | 00 00 00 00 3e 94 00 2a |>.......|....>..*|
|00002f60| 00 00 09 e3 00 00 00 00 | 3e 9e 00 3a 00 00 0c 1b |........|>..:....|
|00002f70| 00 00 00 00 3e a8 00 4c | 00 00 0d 83 00 00 00 00 |....>..L|........|
|00002f80| 3e d0 00 5c 00 00 0f 57 | 00 00 00 00 3e da 00 70 |>..\...W|....>..p|
|00002f90| 00 00 11 33 00 00 00 00 | 3e c6 00 82 00 00 13 7b |...3....|>......{|
|00002fa0| 00 00 00 00 3e bc 00 93 | 00 00 16 60 00 00 00 00 |....>...|...`....|
|00002fb0| 3e b2 00 a3 00 00 17 5b | 00 00 00 00 3f 02 00 b2 |>......[|....?...|
|00002fc0| 00 00 19 8f 00 00 00 00 | 3e f8 00 c3 00 00 1b e1 |........|>.......|
|00002fd0| 00 00 00 00 3f 0c 00 d2 | 00 00 1e 30 00 00 00 00 |....?...|...0....|
|00002fe0| 3f 16 00 e3 00 00 20 82 | 00 00 00 00 3f 20 00 f5 |?..... .|....? ..|
|00002ff0| 00 00 22 d5 00 00 00 00 | 3f 2a 01 07 00 00 25 45 |..".....|?*....%E|
|00003000| 00 00 00 00 3f 34 01 19 | 00 00 27 bd 00 00 00 00 |....?4..|..'.....|
|00003010| 3f 3e 01 28 00 00 28 8b | 00 00 00 00 3e e4 01 39 |?>.(..(.|....>..9|
|00003020| 00 00 29 5b 00 00 00 00 | 3e ee 01 4a 00 00 2b 3f |..)[....|>..J..+?|
|00003030| 00 00 00 00 07 63 6f 6d | 6d 61 6e 64 0f 6d 61 6e |.....com|mand.man|
|00003040| 20 6d 61 6e 20 67 65 6e | 65 72 61 6c 11 6d 61 6e | man gen|eral.man|
|00003050| 20 6d 61 6e 20 72 65 73 | 6f 75 72 63 65 73 0f 6d | man res|ources.m|
|00003060| 61 6e 20 73 65 74 20 67 | 65 6e 65 72 61 6c 11 6d |an set g|eneral.m|
|00003070| 61 6e 20 75 6e 73 65 74 | 20 67 65 6e 65 72 61 6c |an unset| general|
|00003080| 0f 6d 61 6e 20 65 6e 76 | 20 67 65 6e 65 72 61 6c |.man env| general|
|00003090| 13 6d 61 6e 20 70 61 74 | 68 63 68 6b 20 67 65 6e |.man pat|hchk gen|
|000030a0| 65 72 61 6c 11 6d 61 6e | 20 77 68 69 63 68 20 67 |eral.man| which g|
|000030b0| 65 6e 65 72 61 6c 10 6d | 61 6e 20 70 61 74 68 20 |eneral.m|an path |
|000030c0| 67 65 6e 65 72 61 6c 0f | 6d 61 6e 20 70 77 64 20 |general.|man pwd |
|000030d0| 67 65 6e 65 72 61 6c 0e | 6d 61 6e 20 63 64 20 67 |general.|man cd g|
|000030e0| 65 6e 65 72 61 6c 10 6d | 61 6e 20 74 68 65 6e 20 |eneral.m|an then |
|000030f0| 67 65 6e 65 72 61 6c 0e | 6d 61 6e 20 69 66 20 67 |general.|man if g|
|00003100| 65 6e 65 72 61 6c 10 6d | 61 6e 20 65 6c 73 65 20 |eneral.m|an else |
|00003110| 67 65 6e 65 72 61 6c 11 | 6d 61 6e 20 65 6e 64 69 |general.|man endi|
|00003120| 66 20 67 65 6e 65 72 61 | 6c 11 6d 61 6e 20 77 68 |f genera|l.man wh|
|00003130| 69 6c 65 20 67 65 6e 65 | 72 61 6c 11 6d 61 6e 20 |ile gene|ral.man |
|00003140| 75 6e 74 69 6c 20 67 65 | 6e 65 72 61 6c 0e 6d 61 |until ge|neral.ma|
|00003150| 6e 20 64 6f 20 67 65 6e | 65 72 61 6c 10 6d 61 6e |n do gen|eral.man|
|00003160| 20 64 6f 6e 65 20 67 65 | 6e 65 72 61 6c 10 6d 61 | done ge|neral.ma|
|00003170| 6e 20 65 78 69 74 20 67 | 65 6e 65 72 61 6c 12 6d |n exit g|eneral.m|
|00003180| 61 6e 20 65 78 70 6f 72 | 74 20 67 65 6e 65 72 61 |an expor|t genera|
|00003190| 6c | |l | |
+--------+-------------------------+-------------------------+--------+--------+